Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SO10 'if' for field KZABS in Purchase Order

Hello Experts,

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
/: ENDIF



Thanks for any help!

Tags:
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

*call 'Read_text'

/: ELSEIF &LS_MEPOITEM-KZABS& = 'X' - displays the value when on PO the flag is set

* do nothing

/: ENDIF.

Regards,

Suren.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question