2016 Mar 19 12:04 PM
hello all,
for a particular exit i am using the following statements,
field-symbols : <fs1> type any.
field-symbols : <fs2> type any.
ASSIGN ('(SAPLCJWB)L_PRPS') to <fs1>.
ASSIGN ('(SAPLCJDW)*PRPS') to <fs2>.
Issue1
----------
here how do i find the structure of L_PRPS and *PRPS.
Issue2
---------
similarly
for a particular transaction , while writing user exits
to get current data from transaction how do i know which assign like(ASSIGN ('(SAPLCJWB) )
statement do i need to use...
thanks in advance...
2016 Mar 19 1:15 PM
Hi Vinay Reddy,
the first ASSIGN statement will fail (sy-subrc <> 0), because there is no global field L_PRPS in function group CJWB.
The second statement (assigning to <fs2>): Structure is PRPS as defined in data dictionary.
Hope this answers your question.
Kind regards
Clemens
2016 Mar 19 1:15 PM
Hi Vinay Reddy,
the first ASSIGN statement will fail (sy-subrc <> 0), because there is no global field L_PRPS in function group CJWB.
The second statement (assigning to <fs2>): Structure is PRPS as defined in data dictionary.
Hope this answers your question.
Kind regards
Clemens
2016 Mar 19 1:32 PM
hi clemens,
thanks for u r reply,
as u said there is no global field L_PRPS in function group CJWB.,
so Issue1 is solved.....
but i need some clarification pertaining to Issue2(how do i find ASSIGN structure related to a particular transaction)..
2016 Mar 19 5:28 PM
If you assign a global variable from another program, look for the variable declaration in that program. It might come from the DDIC or it might be custom defined via DATA.
One word of caution: the program may not be in the callstack. For example, ME28 uses SAPMM06E while ME22N uses SAPLMEPO. If both share a user exit, you may or may not find that particular program. Such an assignment needs to be checked (IF <F1> IS ASSIGNED).
Wolfgang
2016 Apr 21 12:15 PM