VBELN_SET_GENERATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Creating Sets for Sales Order Numbers When archiving using the archiving object CO_ITEM "CO line items" you can enter a
If you would like to execute this report or see the full code listing simply enter VBELN_SET_GENERATE into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
VBELN_SET_GENERATE - Generate Sales Order Set
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: P_SETNAM = D Set ID
Selection Text: P_TITLE = D Description
Selection Text: S_VBELN = D Sales document
Title: Generate Sales Order Set
Text Symbol: 001 = Select sales documents
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING SET_HEADER = SET_HEADER TABLES SET_LINES_BASIC = SET_LINES_BASIC.
G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING SETCLASS = GSETC_FISL_SETCLASS SHORTNAME = v_SETNAME IMPORTING SETID = r_SETID.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING NO_SET_TITLE = 'X' "Omit description of set SETNAME = r_SETID IMPORTING INFO = l_INFO EXCEPTIONS SET_NOT_FOUND = 1.
G_SET_CHECK_NAME CALL FUNCTION 'G_SET_CHECK_NAME' EXPORTING SETNAME = v_SETNAME "External name NO_NAME_CONVENTION_CHECK = 'X'.
G_OBJECT_NAME_CHECK CALL FUNCTION 'G_OBJECT_NAME_CHECK' EXPORTING MAINMODE = MAINMODE_CREATE OBJECT_NAME = v_SETNAME.
G_SET_PROTECT_HIERARCHY CALL FUNCTION 'G_SET_PROTECT_HIERARCHY' EXPORTING SETNAME = r_SETID EXCEPTIONS SET_IN_STANDARD_HIERARCHY = 1.
G_OBJECT_NAME_CHECK CALL FUNCTION 'G_OBJECT_NAME_CHECK' EXPORTING MAINMODE = MAINMODE_MODIFY OBJECT_NAME = v_SETNAME.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.