on 04-19-2014 4:57 PM
Hi gurus,
I am aiming to add ZTAG1 from T052 into 0ven_compc_attr dss zztag1 field.
At T052 key fields are MANDT ZTAGG ZTERM.
I have ZTERM in the datasources structure.
My code is as below.
when '0ven_compc_attr'.
clear: l_s_data_ven_comp.
loop at i_t_data into l_s_data_ven_comp.
select single ztag1 from T052
into l_s_data_ven_comp-zztag1
where ZTERM = l_s_data_ven_comp-zterm AND
ZTAGG = ''.
modify i_t_data from l_s_data_ven_comp.
I donno why the rsa3 shows column ZZTAG1 however no data on the column although at T052 ztag1 is assigned for one particular zterm.
the code is not also passing to debug mode.
I would appreciate anyıne's help on that topic.
Regards.
Eddy.
Hi,
Can you please explain why are you making ztagg = "" in
"
where ZTERM = l_s_data_ven_comp-zterm AND
ZTAGG = ''.
"
is there any value in table for the blank value of ZTAGG?
as ztagg and zterm both are key you need to pass both the values to get unique value for ztag1.
is the l_s_data_ven_comp is internal table or work area?
if you want first available record in the table just write select single and remove condition for ztagg.
you have to avoid writing select inside loop for performance sake.
-Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Eddy,
what is the client you are in and checking RSA3.. Did you see data in T052 for the combination.. Use SCC1 and transport the TR to non-customizing client and check in RSA3.
Many times as a developers we tend to check the developments in customizig client and will often found no data.
Regards,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am appending the same program you have mentioned in your post.
I also did activations of extract structure of ds, append structure, code, fm , project.
No change.
Heeelp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any syntax error in your code ?
Hard code the breakpoint before select statement and check if you are getting the proper data or not.
Also check if you really have data for the same combination.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As this is master data enhancement i hope you must have written the code in the include ZXRSAU02 of the FM 'EXIT_SAPLRSAP_002'.
Please activate the appended structure,datasource,project and code as well.
Try once again.At datasource level mark the indicator field only known in customer exit.
Hope this works.
Regards,
AL
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.