Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with Batch input

Former Member
0 Likes
465

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

Problem seems to be with the recording, Pl perform the recording again and try.

Regards

Bikas

1 REPLY 1
Read only

Former Member
0 Likes
388

Problem seems to be with the recording, Pl perform the recording again and try.

Regards

Bikas