SO10 'if' for field KZABS in Purchase Order
I'm bit fresh in SO10 commands so I need your assistance. I would like in Purchase order field KZABS if it is set than one text if not other. Currently I have something like this
/: IF LS_MEPOITEM-KZABS = 'X'
B KZABS = is field
/: ELSEIF LS_MEPOITEM-KZABS = ' ' * KZABS = is blank
Thanks for any help!
Suren Anakala replied
It needs to make use of Function module 'Read_text' to retrieve the text via SO10.
So, at the related Text element, call the above FM with the conditions on PO field, kzabs in similar as below:
/: IF&LS_MEPOITEM-KZABS& =' ' - does not display anything
/: ELSEIF &LS_MEPOITEM-KZABS& = 'X' - displays the value when on PO the flag is set
* do nothing