cancel
Showing results for 
Search instead for 
Did you mean: 

SO10 'if' for field KZABS in Purchase Order

tommy_c
Explorer
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tomasz,

Try below

/: IF &LS_MEPOITEM-KZABS& = 'X'
B &KZABS& = &is field&                                  " Pass field or value       
/: ELSEIF &LS_MEPOITEM-KZABS& = ' '

* &KZABS& = ' '

/: ENDIF

Regards,

Pratik

tommy_c
Explorer
0 Kudos

Thanks Pratik I helped a bit.

Currently I have situation where:

/: IF&LS_MEPOITEM-KZABS& ='X' - does not display anything

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

Former Member
0 Kudos

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.

tommy_c
Explorer
0 Kudos

Thanks for help. Now it's working.

Answers (0)