Tuesday, 23 May 2017

ZVA41 sales document create


Function Module

SD_SALESDOCUMENT_CREATE


function sd_salesdocument_create.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Function Module SD_SALESDOCUMENT_CREATE, Start                                                                                                    A
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  ZVA41_UPDATE_ORDER_QTY.    "active version
DATA MID3(4),
       GV_TCODE TYPE SY-TCODE.
IMPORT GV_TCODE TO GV_TCODE FROM MEMORY ID MID3.
CLEAR MID3.
IF GV_TCODE 'ZVA41'.
LOOP AT SALES_ITEMS_IN.
      SALES_SCHEDULES_IN-ITM_NUMBER SALES_ITEMS_IN-ITM_NUMBER.
      SALES_SCHEDULES_IN-SCHED_LINE SALES_ITEMS_IN-ITM_NUMBER.
      SALES_SCHEDULES_IN-REQ_QTY SALES_ITEMS_IN-TARGET_QTY.
      APPEND SALES_SCHEDULES_IN.
ENDLOOP.
ENDIF.
ENDENHANCEMENT.
*$*$-End:   (1)---------------------------------------------------------------------------------$*$*




No comments:

Post a Comment