Application Development 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: 

BDC of transaction IA06

Former Member
0 Kudos

Hi,

I need to do a BDC for transaction IA06 to check the Long text check box.

While doing recoring of my BDC I am selecting all the operations, clicking on the long text and then entried '*' in the TDID column.

If there are say three opeartion then I am doing this for three times.

Below the code snippet :

PERFORM bdc_dynpro USING 'SAPLCPDI' '3001'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_field USING 'RC271-PLNNR' wa_input-plnnr.

PERFORM bdc_field USING 'RC271-STTAG' sy-datum.

PERFORM bdc_field USING 'RC271-PLNAL' wa_input-plnal.

PERFORM bdc_dynpro USING 'SAPLCPDI' '3400'.

PERFORM bdc_field USING 'BDC_OKCODE' '=MAAL'.

PERFORM bdc_dynpro USING 'SAPLCPDI' '3400'.

PERFORM bdc_field USING 'BDC_CURSOR' 'RC270-TXTKZ(01)'.

PERFORM bdc_field USING 'BDC_OKCODE' '=PICK'.

PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=EDNP'.

PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=TXBA'.

PERFORM bdc_dynpro USING 'SAPLSP01' '0100'.

<b> PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.</b>

<b>PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.</b>

PERFORM bdc_field USING 'BDC_OKCODE' '=EDNP'.

PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=TXBA'.

PERFORM bdc_dynpro USING 'SAPLSP01' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.

and so on for as many operations I have....

Now my problem is that once I I click Yes in my first operation, then after that my program control goes to next screen ( Screen Number 1100 ) but <b>OK CODE</b> is not getting passed here and hence my BDC is not working.

Can some one suggest some solution for this. I shall be very thankful to you.

Awards points are assured.

Regards,

Lalit Kabra

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Lalit,

I guess you can re-record the transaction and in case you are looping on the code, you can check whether that looping itself is in correct order or not.

Hope this helps

Regards

Nishant

1 REPLY 1

Former Member
0 Kudos

Hi Lalit,

I guess you can re-record the transaction and in case you are looping on the code, you can check whether that looping itself is in correct order or not.

Hope this helps

Regards

Nishant