Application Development 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: 

how to know structure of internal table used in ASSIGN statement..

former_member185116
Active Participant
0 Kudos
202

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...



1 ACCEPTED SOLUTION

Clemenss
Active Contributor
0 Kudos
158

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

4 REPLIES 4

Clemenss
Active Contributor
0 Kudos
159

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

0 Kudos
158

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)..

Former Member
0 Kudos
158

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

0 Kudos
158

thread closed,

thank u all...