2008 Jan 03 6:26 AM
Good day All,
I want to run MB51 transaction code in program thru CALL TRANSACTION statement. How can I set more than one contents in field MATNR in selection screen. Actually requirement is that my program read matnr from text file and run MB51 transaction with read matnr.
Thanks
Syed Tayab Shah
2008 Jan 03 12:59 PM
Hello,
behind transaction MB51 is executable program RM07DOCS. You might be able to use the SUBMIT statement for calling this program instead of call transaction, then you can transfer any selection of material numbers in parameter MATNR.
Greetings
Thomas
Hello,
behind transaction MB51 is executable program RM07DOCS. You might be able to use the SUBMIT statement for calling this program instead of call transaction, then you can transfer any selection of material numbers in parameter MATNR.
Greetings
Thomas
2008 Jan 03 7:45 AM
Hi,
You can use the concept ,
call transaction with bdc data..
see the sample code below..
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
DATA: PROGRAM LIKE SY-REPID,
WA_BDCDATA TYPE BDCDATA.
WA_BDCDATA-PROGRAM = 'SAPMS38M'.
WA_BDCDATA-DYNPRO = '0100'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'RS38M-PROGRAMM'.
WA_BDCDATA-FVAL = PROGRAM.
APPEND WA_BDCDATA TO BDCDATA.
...
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'
MESSAGES INTO ITAB.
Please make it according to your requirement...
Please reward points if useful.
Regards,
Renjith Michael.
2008 Jan 03 12:52 PM
Hi Michael,
Thanks for your response. but BDCDATA cant run tcode with multiple inputs.
Thanks
Syed Tayab Shah
2008 Jan 03 12:59 PM
Hello,
behind transaction MB51 is executable program RM07DOCS. You might be able to use the SUBMIT statement for calling this program instead of call transaction, then you can transfer any selection of material numbers in parameter MATNR.
Greetings
Thomas
2008 Jan 04 5:22 AM
Good Day Mr. Zloch.
Thanks a lot to help and I have done it successfully. May GOD help and better progress in you future.
Thanks
Syed Tayab shah
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |