Application Development and Automation 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: 
Read only

Issue :Perform Form

Former Member
0 Likes
1,609

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,586

Hi,

Your requirement is not very clear. Can you explain it?

Thanks,

Archana

Read only

Former Member
0 Likes
1,586

Hi

It depends on how the internal tables are, give us more details please

Max

Read only

0 Likes
1,586

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

Read only

0 Likes
1,586

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

Read only

0 Likes
1,586

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 .

Read only

0 Likes
1,586

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

Read only

deepak_dhamat
Active Contributor
0 Likes
1,586

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 .

Read only

0 Likes
1,586

Hello Deepak,

I hav done the same,

but i want to do using perform endform .

Read only

0 Likes
1,586

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 .

Read only

0 Likes
1,586

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.