cancel
Showing results for 
Search instead for 
Did you mean: 

VF05N Table

0 Kudos

Hello ABAPer

I want to add following fields in VF05N standard Table.

1) Invoice value=Netvalue+Tax

2) Retention=

VBRK-VBELN fetch the KNUMV and Pass the Value to PRCD_ELEMENTS-KNUMV where in KSCHL=ZRET & Cumulate the Value
please help me

Jelena
Active Contributor

What is the question?

Accepted Solutions (0)

Answers (2)

Answers (2)

RAF
Active Contributor
0 Kudos

for VF05N you can add fields to structure ERPSLS_BILLDOC

0 Kudos

i want to add a column in vf05n transaction

Retention=

VBRK-VBELN fetch the KNUMV and Pass the Value to PRCD_ELEMENTS-KNUMV where in KSCHL=ZRET & Cumulate the Value


this is the condition for adding the retention column.

0 Kudos


SELECT *
FROM prcd_elements
INTO CORRESPONDING FIELDS OF TABLE it_prcd
WHERE kschl = 'ZRET' .

LOOP AT it_PRCD INTO wa_PRCD.

READ TABLE lrt_doc INTO lrs_doc WITH KEY vbeln = wa_doc-vbeln.
READ TABLE it_doc INTO wa_doc WITH KEY kwert = wa_doc-kwert.
* kschl = 'ZRET'.

IF sy-subrc = 0.
wa_DOC-KWERT = wa_prcd-kwert.
ENDIF.


ENDLOOP .

also i have declare it and wa for prcd and create a stucture.

Sandra_Rossi
Active Contributor
0 Kudos

Please don't create an ANSWER to complete your question or to reply to someone asking for details. ANSWER is reserved for proposing a solution. If you want to add details, please edit your question, or at worst add a Comment by the link right below your question. You also have an option to convert your answer into a comment.

Sandra_Rossi
Active Contributor
0 Kudos

Please use the CODE button to format your code so that it's more user-friendly.