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 for change Asset master data AS92

Former Member
0 Kudos

Hi all,

We need to develop BDC program to change Asset master data AS92.Could you please let me know how to write the code

with table control for transaction AS92.

Thanks

Mohit

4 REPLIES 4

Former Member
0 Kudos

HI,

Have you done the recording ? if not check in saptechnical tutorial Or you can search in scn

Regards,

Madhukar Shetty

0 Kudos

I am using call transaction method. I just want to know how to use table control.

thanks

Mohit

0 Kudos

Hi ,

This is sample code for table control.


     LOOP AT IT_DOCUMENT WHERE BLART EQ 'Z1'.
        WA_TABIX = SY-TABIX.
        CLEAR : CTR.
        CTR = WA_TABIX.
        UNPACK CTR TO CTR.
        CONCATENATE 'DF05B-PSDIF(' CTR ')' INTO W_CURSOR.
        PERFORM FILL_BDCDATA USING :
          'X' 'SAPDF05X' '3100',
          ' '   'BDC_OKCODE'       '/00',
          ' '   'BDC_CURSOR'       'DF05B-PSDIF(01)',
          ' '   'RF05A-ABPOS'      '1',
          ' '   W_CURSOR           W_DIFF1.
      ENDLOOP.

Regards,

Madhukar Shetty

Former Member
0 Kudos

Hi,

When you record the transaction through SHDB, populate the data in allocations tab.

In field name RA02S-EQUNR(01), '01' is the row number of the items in the table control.

In your program use the above logic to increment the row number.

Regards

Praveen