Skip to Content
0
Former Member
Jun 06, 2008 at 11:23 PM

Problem with Batch input

68 Views

Hi experts,

im creating a BI, for txn PC00_m99_cedt, im recording it by SHDB,

i get the form and then i send it by email, the problem is when i push one of the menu buttons, i lose the next dynpro.

here is the code.

perform bdc_dynpro using 'HMXCEDT0' '1000'.

perform bdc_field using 'BDC_CURSOR'

'FORMULAR'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'PNPXABKR'

AREA_NOM.

perform bdc_field using 'PNPTIMR9'

''.

perform bdc_field using 'PNPTIMRA'

'X'.

perform bdc_field using 'PNPPABRP'

periodo.

perform bdc_field using 'PNPPABRJ'

anio.

perform bdc_field using 'PNPPERNR-LOW'

ti_pa0105-pernr.

perform bdc_field using 'PNPABKRS-LOW'

AREA_NOM.

perform bdc_field using 'FORMULAR'

FORMULAR.

perform bdc_field using 'ANDRUCK'

ANDRUCK.

perform bdc_field using 'RUECKD'

RUECKD.

perform bdc_field using 'RUECKR'

RUECKR.

perform bdc_field using 'SORT_RR'

SORT_RR.

perform bdc_field using 'SPRACHE'

SPRACHE.

perform bdc_field using 'PRT_PROT'

'X'.

perform bdc_field using 'CUR_FP'

'X'.

perform bdc_dynpro using 'HMXCEDT0' '1000'.

perform bdc_field using 'BDC_CURSOR'

'FORMULAR'.

perform bdc_field using 'BDC_OKCODE'

'=ONLI'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_OKCODE'

'=%SL'.

..after this line i lost the control and return to main txn...

perform bdc_dynpro using 'SAPLSO04' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'SOS33-OBJDES'

'Recibo de salarios México'.

perform bdc_field using 'BDC_CURSOR'

'SOS04-L_ADR_NAME(01)'.

perform bdc_field using 'SOS04-L_ADR_NAME(01)'

ti_pa0105-USRID_LONG.

perform bdc_dynpro using 'SAPLSO04' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=SEND'.

perform bdc_field using 'SOS33-OBJDES'

'Recibo de salarios México'.

perform bdc_field using 'BDC_CURSOR'

'SOS04-L_ADR_NAME(01)'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_dynpro using 'HMXCEDT0' '1000'.

perform bdc_field using 'BDC_OKCODE'

'/EE'.

perform bdc_field using 'BDC_CURSOR'

'PNPXABKR'.

CALL TRANSACTION 'PC00_M32_CEDT'

USING bdcdata

MODE 'A'

UPDATE 'S'.

  • MESSAGES INTO messtab.

Edited by: javier santana on Jun 7, 2008 1:24 AM