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

Regarding PP Module tables, join condition

Former Member
0 Likes
690

Hi friends,

my requirement is to join plaf & resb tables in PP modules so i need on condition to put on what fields either plnuf or rsnum.

another requirement is to join afko & resb tables in PP modules so i need on condition to put on what fields either aufnr or rsnum.

so i need the condition with proper reason

3 REPLIES 3
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
552

There is a very useful button in SE11. It's called 'Where used'. You can find the table names where the data types are used and stuff. You might also want to check the PP tables here:

http://www.erpgenie.com/sap/abap/tables_pp.htm

Read only

0 Likes
552

That is not my requirement, actually i want the on conditon on which fields should be given for the tables i mentioned earlier

Read only

Former Member
0 Likes
552

hi use this ...taking as the rsnum as key field...

tables:afko,resb.

data: begin of it_AFKO occurs 0,

RSNUM like afko-RSNUM,

GLTRP like afko-GLTRP,

GSTRP like afko-GSTRP,

GAMNG like afko-GAMNG,

PLNBEZ like afko-PLNBEZ,

end of it_afko.

data:begin of it_RESB occurs 0,

RSNUM like resb-RSNUM,

RSPOS like resb-RSPOS,

RSART like resb-RSART,

BDART like resb-BDART,

end of it_resb.

select-options: s_rsnum for afko-rsnum.

select RSNUM

GLTRP

GSTRP

GAMNG

PLNBEZ

from afko

into table it_afko

where rsnum in s_rsnum.

if not it_afko[] is initial.

select RSNUM

RSPOS

RSART

BDART

from resb

into table it_resb

for all entries in it_afko

where rsnum = it_afko-rsnum.

endif.

regards,

venkat.