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

Tran Pa40

Former Member
0 Likes
658

Hi,

I recorder tran pa40, but based on conditions i want to skip one screen.

Present scenario

Infotype PA0105 not required for subtype 0001.

if wa_it-usrid NE ''.

PERFORM bdc_dynpro USING 'MP010500' '2000'.

PERFORM bdc_field USING 'BDC_CURSOR'

'P0105-USRID'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=UPD'.

PERFORM bdc_field USING 'P0105-BEGDA' wa_it-begda.

  • '04.09.2008'.

PERFORM bdc_field USING 'P0105-ENDDA'

'31.12.9999'.

PERFORM bdc_field USING 'P0105-USRID' wa_it-usrid.

  • 'Hna'.

e

Thanks,

Asha

Hi,

I recorder tran pa40, but based on conditions i want to skip one screen.

Present scenario

Infotype PA0105 not required for subtype 0001.

if wa_it-usrid NE ''.

PERFORM bdc_dynpro USING 'MP010500' '2000'.

PERFORM bdc_field USING 'BDC_CURSOR'

'P0105-USRID'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=UPD'.

PERFORM bdc_field USING 'P0105-BEGDA' wa_it-begda.

  • '04.09.2008'.

PERFORM bdc_field USING 'P0105-ENDDA'

'31.12.9999'.

PERFORM bdc_field USING 'P0105-USRID' wa_it-usrid.

  • 'Hna'.

e

Thanks,

Asha

4 REPLIES 4
Read only

Former Member
0 Likes
618

If you are skipping a screen for 1 condition you need to record 2 BDC 's one with the inclusion of the skipping screen and another with out that , if you skip via a IF condition the flow of the recording will stop it will get stuck.

Read only

Former Member
0 Likes
618

Hi,

What is the problem you are facing. It is fine if you skip the screen based on some condition. Porvided that screen should not have mandatory fields in it.

Thanks,

Kartavya

Read only

0 Likes
618

Thanks

Read only

Former Member
0 Likes
618

Thanks