CALL TRANSACTION alternatives

pts.
Tags:
SAP ABAP
I have to call transaction MB51 from a custom program and SETing the parameter ID's is not sufficient to pass the selections required. Does any one know how to feed a VARIANT thru a call or modify a variant that the transcation can use?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

Since MB51 is a report transaction you can use:

SUBMIT RM07DOCS myvariant_to_pass_parameters.

passing parameters with SUBMIT:
- USING SELECTION SET nn
- WITH p (all options)
- WITH SELECTION TAB tab
- WITH FREE SELECTIONS xxx

Hope this can help,

greetings,

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Cynthia428
    The BDC format for calling a transaction is documented in the online help as: Example 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. Use Mode 'E' to call the transaction without seeing the command field messages. Be sure to do the authority-check for use of the transaction before using Call Transaction or Submitting the report program directly.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following