Program code in SAPScript
I'm using program RFKORD50 to print customer invoices. For this I have made a copy of the form F140_DOCU_EXC_02 (Customer Invoice), and added this to the form set in RFKORD50.
I would like to add some additional information in this Z-form, data which is not passed from the application program. Is it possible to add some program lines to the Z-form which can retrieve the additional data, or handle this in any other way without changing the application program itself?
All helpful answers will be rewarded!
Nick Young replied
Well, the CHAR element is the default, SAPscript can only define character type fields. The full syntax is
/: DEFINE &FIELD& = 'value'
Now you'll actually be setting the value in your ABAP, and this will dictate the length, so in theory you could use,
/: DEFINE &FIELD& = '1234567890'
or I guess
/: DEFINE &FIELD& = ' '
It may be worth a bit of trial and error to see which makes most sense.