2007 Jan 19 6:11 AM
Hi,
I need to call this transaction ML81N with parameters PO number and PO item.
SET PARAMETER ID 'BES' FIELD wa_po_details-ebeln.
SET PARAMETER ID 'BSP' FIELD wa_po_details-ebelp.
CALL TRANSACTION 'ML81N' AND SKIP FIRST SCREEN.
The transaction is called but without the parameters.
Is there any way that my transaction is called with parameters.
Any FM etc?
Thank u
Hi,
I need to call this transaction ML81N with parameters PO number and PO item.
SET PARAMETER ID 'BES' FIELD wa_po_details-ebeln.
SET PARAMETER ID 'BSP' FIELD wa_po_details-ebelp.
CALL TRANSACTION 'ML81N' AND SKIP FIRST SCREEN.
The transaction is called but without the parameters.
Is there any way that my transaction is called with parameters.
Any FM etc?
Thank u
2007 Jan 19 6:14 AM
HI,
I dont think SET PARAMETER will work since in your transaction code also you need to have GET PARAMETER i dont think it is there. I think you can use SUBMIT WITH instead and pass the parameters or else use BDCDATA to pass the parameters. CALL TRANSACTION supports BDCDATA.
Regards,
Sesh
2007 Jan 19 6:16 AM
Hi Swathi ,
If you look at the transaction , it directly takes the default PO , usually blank.
In the Tollbar there is a button Other PO , which displays a popup with PO and item , and there is a check box 'Always Display at start' , check this and exit .
Next time onwards the popup is first displayed.
and call the transaction by passing the table which contains the screen fields and corresponding values , same as we do in BDC.
Try using this and if it works ask your basis or functional person how to make this setting as default for all users.
Regards
Arun
2007 Jan 19 6:24 AM
2007 Jan 19 6:31 AM
put like this If u have Entry Sheet Number.
<b> set parameter id 'LBL' field '1000000484'.
set parameter id 'BES' field '4500000006'.
call transaction 'ML81N'.</b>
regards
Prabhu
2011 Jun 15 2:16 PM
Hi,
For those who still search (the thread is quite old right now) you can use BDC to do it.
DATA: l_s_bdcdata TYPE bdcdata,
l_t_bdcdata TYPE TABLE OF bdcdata.
l_s_bdcdata-program = 'SAPLMLSR'.
l_s_bdcdata-dynpro = '0400'.
l_s_bdcdata-dynbegin = 'X'.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-fnam = 'BDC_OKCODE'.
l_s_bdcdata-fval = '=SELP'.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-program = 'SAPLMLSR'.
l_s_bdcdata-dynpro = '0340'.
l_s_bdcdata-dynbegin = 'X'.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-fnam = 'RM11R-EBELN'.
l_s_bdcdata-fval = ebeln.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-fnam = 'RM11R-EBELP'.
l_s_bdcdata-fval = ebelp.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-fnam = 'RM11R-LBLNI'.
l_s_bdcdata-fval = entry_sheet.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-fnam = 'BDC_OKCODE'.
l_s_bdcdata-fval = '=ENTE'.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
l_s_bdcdata-program = 'SAPLMLSR'.
l_s_bdcdata-dynpro = '0400'.
l_s_bdcdata-dynbegin = 'X'.
APPEND l_s_bdcdata TO l_t_bdcdata.
CLEAR l_s_bdcdata.
CALL TRANSACTION 'ML81N' USING l_t_bdcdata MODE 'E'.
Regards,
Sebastien