2007 Feb 10 4:05 AM
Hi All,
I have two internal tables.
itab1 is having Production Number (aufnr) and other details.
itab2 is having Operation Numbers (afvc-vornr) associated with itab1-aufnr. But itab2 is not having Prod Order number (aufnr) field.
Now i need to pass itab2-vornr data to itab1. I can move this field to itab1 by looping both internal tables.
If itab2 is having more than 1 operation number (say 3) for single production order of itab1, how to pass the data to itab1...??????
Please help me with syntax.....
Regards
Pavan
2007 Feb 10 4:12 AM
hi pavan,
the structure of itab1 one and itab2 should be same. suppose if u wannna move itab2-vofnr to itab1, vofnr must be the field of itab1.
you can move only the value associated to that field.
Regards,
alosn.
Thanks for your Help...
It has been solved...
Have a great day ahead...
Regards
Pavan
2007 Feb 10 4:12 AM
hi pavan,
the structure of itab1 one and itab2 should be same. suppose if u wannna move itab2-vofnr to itab1, vofnr must be the field of itab1.
you can move only the value associated to that field.
Regards,
alosn.
2007 Feb 10 4:20 AM
Hi Pavan ,
If that is the case then you will have to create multiple entries for the same Production number in the internal table itab1.
Regards
Arun
2007 Feb 10 4:29 AM
Thanks for your responses..
How to create multiple entries in itab1 for the same Ptoduction Order..????
2007 Feb 10 4:31 AM
Hi Pavan ,
Do you have the feild <b>vornr</b> in your internal table itab1.
Regards
Arun
2007 Feb 10 4:54 AM
i think you have to take a common field in both the itab. i can suggest you take aufpl fields from afko and afvc table in itab1 and itab2.
now
loop at itab1.
read table itab2 with key aufpl = itab1-aufpl.
if sy-subrc = 0.
itab1-vornr = itab2-vornr.
modify itab1 index sy-tabix.
endif.
endloop.
regards
shiba dutta
2007 Feb 10 5:23 AM
Thanks for your Help...
It has been solved...
Have a great day ahead...
Regards
Pavan
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |