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

Import structure from calling program

Former Member
0 Likes
978

i am working on a userexit EXIT_SAPLCOIH_010: PM Order: Customer Enhancement for Determination of WBS Element

but i wish to pull in extra data from a structure i have found in the stack trace: SAPLIQS0 / WVIQMEL

is it possible to make this data available for me for my logic?

the exit is called in the order creation within IW51 - create notification, but the fields i need to validate to determine the WBS Element are available on the Notification and not the Order or structure CAUFVD. The order is saved to the database before the notification is committed so i am unable to obtain the data from the DB even though i have the QMNUM from QMEL.

any ideas on how i can import/make/read this table that must be held in memory somewhere?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
911

dirty assign would do the trick.

5 REPLIES 5
Read only

Former Member
0 Likes
912

dirty assign would do the trick.

Read only

0 Likes
911

Thank you Florian

i have looked at the F1 keyword help on "Assign" however maybe i am misinterpreting the help....

The label in name can also have the form (PROG)DOBJ for internal use only, where PROG is the name of an ABAP program and DOBJ is the name of a global data object of this program. If the program PROG is loaded during execution of the statement ASSIGN in the same internalmode as the current program, the data object (PROG)DOBJ is searched for in this program, and the field symbol points to this data object after the object has been successfully assigned.

so i have added....

ASSIGN (SAPLIQS0)WVIQMEL TO <fs>.

unfortunately, when i debug the code, it does not give me the desired result.

Read only

0 Likes
911

oh i always have problems with this syntax as well.

it think it should read


ASSIGN ('(SAPLIQS0)WVIQMEL') TO <fs>.

just be aware of the word DIRTY in the nomencalture use this for READING purposes only, and please NEVER for modifying purpuses or you may get inconsistent data.

Edited by: Florian Kemmer on Sep 17, 2010 1:00 PM

Read only

0 Likes
911

YAY! thank you!!!! 🐵

Read only

0 Likes
911

I am not sure but maybe function module IQS0_BUFFER_GET can do the trick.