Mutual calls between programs in SAP, usage of the submit keyword

Source: Internet
Author: User
The submit keyword can be used in ABAP. Program Is a very useful keyword (1) to call another program, such as submit zhr_update_it0008. "Call the program that updates information type 0008 (2) when one program calls another program, data transmission is required. One is that the screen of the called program has input parameters. You can use the following method to transmit data: Submit zhr_update_it0008 with p_betrg = '2017. 00 '. "Call the program and assign p_betrg a value of 1000.00. another case is to pass data from an internal table. This requires sap memory or ABAP memory. In the calling program, export t_itab to memory 'zhr _ it0008'. In the called program, import t_itab from memory 'zhr _ it0008 '. (3) If the data is more complex, you can use files to temporarily store the data. Usage of submit with select-Options program * Code used to populate 'select-options' & execute report
Data: seltab type table of rsparams,
Seltab_wa like line of seltab.
Seltab_wa-selname = 'pnppernr '.
Seltab_wa-sign = 'I '.
Seltab_wa-option = 'eq '.
* Load each personnel number accessed from the structure
* Parameters to be used in the report
Loop at pnppernr.
Seltab_wa-low = pnppernr-low.
Append seltab_wa to seltab.
Endloop.
Submit zreport with selection-Table seltab
Via selection-screen.
Usage of submit with parameters Program * Code used to populate 'parameters '& execute report Submit zreport with p_param1 = 'value'
With p_param2 = 'value '.
Other cases * Submit report and return to current program afterwards Submit zreport and return. * Submit report via its own selection screen Submit zreport via selection-screen. * Submit report using selection screen Variant Submit zreport using selection-set 'variant1 '.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.