We have a situation where some of the standard SAP fields/values being passed to the SAPscript form are initial. For example, when multi-level packaging is used (Progam SDPACKDR), LVBPLP-VBELN, POSNR, and VEMNG are initial. These same fields are populated when single-level packaging is used. A large number of SAPscript forms have PERFORM statements that pass these values to ABAP routines in order to get other values needed for the HU labels. Now that some plants are using multi-level packaging, their labels are not printing with all of the necessary data.
I would like to add code to the SAPscript forms that check the values of these 3 fields. If they are initial (zero, null, etc.), then I would like to use a PERFORM statement to get the appropriate values for these fields to be used in the subsequent PERFORM statements. Will SAPscript allow me to change the values in these fields directly by using them as the CHANGING parameters of the new PERFORM or will I need to do it a different way (DEFINE statement maybe)?
- Code: Select all
/* Proposed new PERFORM below
/: PERFORM 'GET_VBELN_POSNR_VEMNG' IN PROGRAM 'ZVU_LABEL_FORM'
/: USING &LVBPLP-VENUM&
/: CHANGING &LVBPLP-VBELN&
/: CHANGING &LVBPLP-POSNR&
/: CHANGING &LVBPLP-VEMNG&
/: ENDPERFORM.
/* Existing PERFORM that uses the fields that are initial for multi-level packaging
/: PERFORM 'GET_SHIP_LBL_INFO_CH' IN PROGRAM 'ZVU_LABEL_FORM'
/: USING &LVBPLP-VBELN&
/: USING &LVBPLP-POSNR&
/: CHANGING &MAKT-MAKTX&
/: CHANGING &MARC-HERKL&
/: CHANGING &ZAESKD&
/: CHANGING &ZVPROG&
/: CHANGING &ZEIKTO&
/: CHANGING &ZKNREF&
/: CHANGING &ZUSR03&
/: CHANGING &ZUSR04&
/: CHANGING &ZUSR05&
/: CHANGING &ZLOCATION&.
/: ENDPERFORM.
I am trying to minimize the amount of SAPscript and possibly ABAP changes needed for the plants using multi-level packaging. Any and all help will be greatly appreciated. Thanks in advance for your help!

