‎2010 Jan 22 10:19 AM
Hello Experts,
In my one internal table i m having all movement types (103,104,105,106), one way to segregate all the movement types by appending in different internal tables .But i want to do this usinf perform form.
Plz suggest.
Aastha
‎2010 Jan 22 10:23 AM
Hi,
Your requirement is not very clear. Can you explain it?
Thanks,
Archana
‎2010 Jan 22 10:24 AM
Hi
It depends on how the internal tables are, give us more details please
Max
‎2010 Jan 22 10:29 AM
Hello Max,
I want that i don't need to append in different internal table for diffrent movement type .
Can i use perform for one internal table using diffrent movement type
Regards,
Aastha
‎2010 Jan 22 10:38 AM
Hi
Yes it can....but I still don't understand what u need to do:
FORM APPEND_MOV_TYPE USING P_MOV.
MOVE P_MOV TO ITAB-MOV.
APPEND ITAB.
ENDFORM.But I don't know if this is what u need
MAx
‎2010 Jan 22 10:40 AM
hi astha ,
What you want to do with those movement type i.e any calculation of menge or separating that data .
when you are having data with different movement type .
and dont want to append in other internal table , but this depend upon the requirement , which is not clear
Regards
Deepak .
‎2010 Jan 22 10:52 AM
Hello Astha ,
What i understand from ur question is ......you want to pass diifrent type of internal table in a single subroutine .
am i rigth ??
Thanks and Regards...
Priyank dixit
‎2010 Jan 22 10:33 AM
hi astha ,
You can declare five internal table i.e of same structure
it_item type standard table of w_item with header line .
it_item1 type standard table of w_item with header line .
it_item2 type standard table of w_item with header line .
it_item3 type standard table of w_item with header line .
it_item4 type standard table of w_item with header line .
then do looping for main table and check if conddition if
loop at it_item .
if bwart ='101' .
movecorresponding it_item to it_item1 .
append it_item1.
elseif it_item-bwart = '102' .
movecorresponding it_item to it_item2 .
append it_item2.
elseif ...... so on ..
endif.
endloop.
And then use that internal table .
Regards
Deepak .
‎2010 Jan 22 10:36 AM
Hello Deepak,
I hav done the same,
but i want to do using perform endform .
‎2010 Jan 22 10:44 AM
Hi Ashta ,
What MAX Told that you can use . but
Are you going to use that same table for calculation and after calculation you will be refreshing data , so that next movement type can be used .
Regards
Deepak .
‎2016 Feb 15 6:22 PM
Hello Deepak,
I am having trouble trying to calculate the 401k in payroll. I need to create an internal table and perform the calculation. Can you help me?
LOOP AT rgdir WHERE ( fpper EQ p_perbeg "PAYROLL period
AND srtza EQ 'A'
AND void NE 'V' ).
MOVE wa_persno TO rx-key-pernr.
MOVE rgdir-seqnr TO temp_seqno.
MOVE temp_seqno TO rx-key-seqno.
IF rt-lgart = '7331'. "Employer Match
COMPUTE wa_tottab-ntua_employer_amt_sum =
wa_tottab-ntua_employer_amt_sum + rt-betrg.
* wa_tottab-ntua_employer_amt_sum = wa_tottab-ntua_employer_amt_sum / 100 .
ENDIF.