Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ML81N Transaction

Former Member
0 Likes
2,003

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

5 REPLIES 5
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,316

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

Read only

Former Member
0 Likes
1,316

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

Read only

Former Member
0 Likes
1,316

Hi

Are you using it in interactive ALV?

Thanks

Shiva

Read only

Former Member
0 Likes
1,316

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

Read only

Former Member
0 Likes
1,316

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