cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding automatically update of transaction through BDC

Former Member
0 Kudos

Hi All,

I am doing BDC for updating tab delimited file(e.g file 1) for transaction MB1A which is done and the first part..now the second part is when tthe updation of <b>MB1A</b> is finished , the user will press save button which will call another Transaction <b>MB1C</b> and automatically update another tab delimted file

(e.g file 2)..PLz help me out as how to do this ...

If any code is there plz send it????

waiting for the help ASAP...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai Asish,

After Writing Coding For MB1A and After Call Transaction Statement In the Same Loop you write coding for Next Transaction MB1C Write Call Transaction Statement for MB1C. End the Loop.

Hope it Will Help You.

Thanks & Regards,

Shiva.

Former Member
0 Kudos

Hi Shiva,

Thanks for your advice..I tried it but it is not working...what the user wants is that when it comes out of the first transaction i.e MB1A it will press SAVE button and it will call MB1C an automatically updae it from another tab delimited file..

Thanks & Regards,

Asish Dash

varma_narayana
Active Contributor
0 Kudos

Hi Ashish..

This Can be Done using the call transaction method.

This is the Sample code.. Just try to apply it. LOT OF CHANGES ARE NEEDED IN THIS...

DATA: IT_MSG TYPE TABLE OF BDCMSGCOLL,

WA_MSG TYPE BDCMSGCOLL.

LOOP AT IT_MB1A.

PERFORM MAP_BDCDATA_MB1A.

CALL TRANSACTION 'MB1A'

USING IT_BDCDATA

MODE 'N'

MESSAGES INTO IT_MSG.

if Sy-subrc = 0. "MB1A is successful

READ TABLE IT_MSG INTO WA_MSG WITH KEY MSGTYP = 'S'

**Use this BDCMSGCOLL table to get the document no after MB1A

LOOP AT IT_MB1C.

CALL TRANSACTION 'MB1A'

USING IT_BDCDATA

MODE 'N'

MESSAGES INTO IT_MSG.

ENDLOOP.

ENDLOOP.

REWARD IF HELPFUL.