Ach ja - da du dich erst einlesen musstest wie man die BDCTAB füllt.Dynbeginn Startbildschirm
ein paar Variablen des Startbildschirms
BDC_OK_CODE des Startbildschirms
Dynbegin 2. Dynpro
Dynbegin Startbildschirm
BDC_OK_CODE Startbildschirm ( der zum Verlassen )
Code: Alles auswählen.
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: WA_BDCDATA TYPE BDCDATA.
WA_BDCDATA-PROGRAM = 'SAPLN1PATORG'.
WA_BDCDATA-DYNPRO = '0300'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA. CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'G_EINRI'.
WA_BDCDATA-FVAL = '0001'.
APPEND WA_BDCDATA TO BDCDATA. CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'G_RNPA1_0300-FALNR'.
WA_BDCDATA-FVAL = ZSKFNRACCESS-E_FALLNUMMER.
APPEND WA_BDCDATA TO BDCDATA. CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'G_RNPA1_0300-PATNR'.
WA_BDCDATA-FVAL = l_patnr.
APPEND WA_BDCDATA TO BDCDATA. CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'BDC_OKCODE'.
APPEND WA_BDCDATA TO BDCDATA. CLEAR WA_BDCDATA.
*
CALL TRANSACTION 'N1PATORG' USING BDCDATA MODE 'E'.