06-29-2007 4:29 AM
Hi Guru,
I do have problem with data conversion process. In my excel template, I do have some code to generate text file and upload to SAP using BDC process as a batch. I have doubt with template. Can anyone give me explanation on this. Reward will be given. Thank you very much.
This is my code in template.
MM01
SAPLMGMM 0060X
BDC_CURSOR RMMG1_REF-MATNR
RMMG1-MATNR 0
RMMG1-MTART 82
RMMG1_REF-MATNR 0
BDC_OKCODE /00
SAPLMGMM 0070X
BDC_CURSOR MSICHTAUSW-DYTXT(01)
BDC_OKCODE =P+
SAPLMGMM 0070X
BDC_CURSOR MSICHTAUSW-DYTXT(04)
MSICHTAUSW-KZSEL(03) X
MSICHTAUSW-KZSEL(04) X
BDC_OKCODE =ENTR
SAPLMGMM 0080X
BDC_CURSOR RMMG1_REF-BWTAR
RMMG1-WERKS 0
RMMG1_REF-WERKS 0
MBEW-BKLAS 0
MBEW_REF-BKLAS 0
BDC_OKCODE =ENTR
SAPLMGMM 4000X
BDC_OKCODE /00
SAPLMGMM 4000X
BDC_OKCODE /00
SAPLSPO1 0300X
BDC_OKCODE =YES
TCDEMM01
ENDTCDE
06-29-2007 5:07 AM
Hi,
This is the BDC structure.
PROGRAM BDC module pool
DYNPRO BDC Screen number
DYNBEGIN BDC screen start
FNAM Field name
FVAL BDC field value
SAPLMGMM - Program
MM01 - Tcode
0060 -Screen number
X -screen start
FNAM -RMMG1-MATNR
FVAL -0
06-29-2007 4:38 AM
Hi ,
Are you looking for the expalintaion of the code you given in the post?
06-29-2007 4:48 AM
Hi,
Yes. I'm looking for the explanation of that code. I don't understand the process of that code.
Thank you
06-29-2007 5:07 AM
Hi,
This is the BDC structure.
PROGRAM BDC module pool
DYNPRO BDC Screen number
DYNBEGIN BDC screen start
FNAM Field name
FVAL BDC field value
SAPLMGMM - Program
MM01 - Tcode
0060 -Screen number
X -screen start
FNAM -RMMG1-MATNR
FVAL -0
06-29-2007 5:18 AM
Hi...
thank you for your answer. However, I have more question. How can i get screen number such that like 0060x? For example, I want to add alternative unit of measure data. That information is appear under additional data page. How can I prepare template for that conversion? Thank you very much. more reward will be given.
cheers,
06-29-2007 5:22 AM
Hi,
All the screen numbers are based on the recording of BDC.
Just go to the transaction SHDB and do the recording for the transaction you want, you will get a clear idea.
Regards,
Atish
06-29-2007 5:24 AM
Hi,
If you go to SHDB tcode and run the recording for MM01 tcode by entering the values given there,you can one program will be generated.For knowing the screen no. and program name, you need to use menu System->Status.
For more information,refer this link.It will teach all the basic things in BDC.
06-29-2007 5:22 AM