Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Multiple tcode using BDC session

$
0
0

Hello all,

 

I need to have some knowledge regarding the usage of multiple transaction codes using BDC session. I have seen a few threads regarding this issue but I wanted a full in depth information regarding this.

 

I have a notepad from where I need to upload the data into SAP system. The tcodes are MM01 and XD01.

Below are my doubts which require clarity:


The notepad may contain a mixture of records for material master and customer master. For example, say A depicts records to be uploaded to MM01 and B depicts records to be uploaded to XD01. So the records are lined up in the notepad in the following manner:

 

A1     A2     A3     A4<-- for MM01

B1     B2     B3     B4<-- for XD01

A5     A6     A7     A8<-- for MM01

B5     B6     B7     B8<-- for XD01

 

So I will create a local structure (IT_UPLOAD) containing the 8 fields to be uploaded ( 4 fields each for MM01 and XD01 ) . 

 

1) How do I place them in the respective variables after the subroutines are called ? Will it be as below ?

    

call function     BDC_OPEN_GROUP.

                    LOOP AT IT_UPLOAD INTO WA_UPLOAD.

                        <.....PLACE VARIABLES FOR MM01 in the subroutines....>

call function    BDC_INSERT  <----- MM01 TCODE           

<.....PLACE VARIABLES FOR XD01 in the subroutines....>

call function    BDC_INSERT  <----- XD01 TCODE          

                    ENDLOOP.

call function   BDC_CLOSE_GROUP.

 

2) After recording for each transaction, how shall I put the subroutines for both transactions inside the same program ?

    I am implying that if the program after recording MM01 is ZMM01_PROG and for XD01 is ZXD01_PROG, am I supposed to copy and paste the separate report ZXD01_PROG inside ZMM01_PROG ?

 

I hope I have been able to make my query very clear as I have never used multiple transactions in BDC before and I need to know how to go about it.

Please help.

 

Manish


Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>