Skip to Content
0
Former Member
Mar 24, 2009 at 11:24 AM

field symbol for order type

86 Views

Hi all.

i have a condition on which i need to use the field symbol in which depending on the condition,my subscreen should be displayed.

i have SAPLMEGUI as a main standard program and MEPO_TOPLINE-BSART is a field which is attached to this std program.

Also,if this BSARt becomes UB(order type in purchase orders) then only it should go to subscreen.i tried doing it like below,but not getting solution.

please help.

data: GV_OKCODE_FIELD type char35 VALUE '(SAPLMEGUI)MEPO_TOPLINE-BSART'

.

FIELD-SYMBOLS <MEPO_TOPLINE-BSART> TYPE ANY.

ASSIGN GV_OKCODE_FIELD TO <MEPO_TOPLINE-BSART>.

IF <MEPO_TOPLINE-BSART> = 'UB'.

endif.