Skip to Content
0
Former Member
May 09, 2008 at 11:21 AM

Form RFPOS, find VKORG, VTWEG and SPART for document

1304 Views

Hi Experts, I need your help.

In order to display in the transaction FBL5N, new fields KNVV-BZIRK and KNKK-KLIMK for each document displayed in the ALV list, i create one MF copy of SAMPLE_INTERFACE_00001650.

I this MF, i have as input parameter the structure RFPOS.

From this Structure, i must search KNVV-BZIRK and KNKK-KLIMK.

For that i must find first KUNNR, VKORG, VTWEG and SPART.

I found that KUNNR = RFPOS-KONTO but i don't find the others fileds. Can you confirm me that RFPOS-KONTO is KUNNR?

I thought search the financial document, after from it serach the refrence document and the end search the fields. For that, i reached BKPF with RFPOS-BELNR, RFPOS-BUKRS and RFPOS-GJAHR. I selected the BKPF-AWTYP and BKPF-AWKEY. But, here i don't know from each table i can find VKORG, VTWEG and SPART because AWTYP can be VBRK or BKPF or others. That means that i must treat each case? Is possible? and how?

And for example, if i find BKPF, when i will find VKORG, VTWEG and SPART for this document, in the table BKPF doesn't exist?

Please, help me and show me how i can find the fields that i search?

Thank you.