on 2016 May 04 2:22 PM
Hi All,
wanted to know like how to assign one fixed value to one internal table's field. Lets say like I have one fiscal period-004.2016 wanted to assign that to ITAB-FISCPER /Result_package-Fiscper for all entries. Please post the pseudo code here.
Request clarification before answering.
Did you try the LOOP AT internal table ASSIGNING a field-symbol, so no move of data is executed, unlike using work area, which would move from and back each and every record, a LOOP AT itab ASSIGNING <fs> (of the correct type, not a ANY TYPE) then <fs>-bukrs = '030' and ENDLOOP. should also have performed correctly. (In fact the MODIFY WHERE TRANSPORTING performs this way)
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try constant value
or
code:--
loop at itab into wa.
wa-fiscper = "004.2016".
modify itab from wa index sy-tabix.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
Your requirement is not very clear.
However, if you need the fiscal period a same for all entries why don't you use the constant?
Did you try any code yet to achieve this?
Where is this fiscal period value coming from? Where are you trying the code - end routine? Is there any specific logic for the fiscal period value?
Assigning the value is simple but it is important to understand the context in which you are trying this.
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.