Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Acessing global structure values in field exit function

Former Member
0 Likes
500

Hi Friends,

I have created field exit on sold to party field while creating sales order. But inside of that field exit

i need to put one query on basis of sold to party and sales organization and division. But that field exit function having only one import parameter that is sold to party but from where i can fetch sales organization and division . How can i refer global program values. Can i use assign statememnt for that. Please help me.

Thanks a lot in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
445

You can use the assign command to get other values in the screen. See the examplo below:

DATA lv_field TYPE char40.

FIELD-SYMBOLS: <fs_postp> TYPE ANY.

lv_field = '(SAPLCOMD)RESBD-POSTP'. "

ASSIGN (lv_field) TO <fs_postp>.

2 REPLIES 2
Read only

Former Member
0 Likes
446

You can use the assign command to get other values in the screen. See the examplo below:

DATA lv_field TYPE char40.

FIELD-SYMBOLS: <fs_postp> TYPE ANY.

lv_field = '(SAPLCOMD)RESBD-POSTP'. "

ASSIGN (lv_field) TO <fs_postp>.

Read only

uwe_schieferstein
Active Contributor
0 Likes
445

Hello

the original article about this topic can be found here:

[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]

Regards

Uwe