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

debugging vfo1 std programm SAPMV60A

Former Member
0 Likes
754

Hi,

First of all let me tell u the whole senario.

First we create a sales order (va01) and after that we create an Invoice (vf01) for that sales order no.

when we create an invoice TTXI (HEADER) AND TTXY (ITEM) TABLES GET UPDATED.

in the ttxy table there is an structure com_tax which is included and which contains a currency field.

i want to know at which place in the standard program (SAPMV60A) of vf01 will this filed gets the value.

when i tried to analyse this std program there in is a perform statement in the program LV61AF0X which is calling the form FRM_KONDI_WERT_637 WHICH is in fv64ann.

can anybody help me in finding the solution for this problem.

waiting for ur reply.

regards,

maqsood

3 REPLIES 3
Read only

Former Member
0 Likes
611

Hello Maqsood,

So what we have to find? When this value is called or From where this value is called?

Regards,

Lijo Joseph

Read only

0 Likes
611

hi Lijo Joseph

we have to find when this value is being called.

At which point in the std progam of vf01 is this value being assigned to the currecy field ( com_tax structure)of ttxy table

i have came to know that from where this value is being taken.

i think it is taken from waerk of vbak table.

waiting for ur reply

regards,

maqsood

Read only

0 Likes
611

Hi Maqsood,

Check the program 'FV64A519' and look at the source code line 218.Here it is actually gets populated.

Populate COM_TAX

com_tax-client = sy-mandt. " Client

com_tax-comp_code = komk-bukrs. " Company Code

com_tax-country = komk-aland. " Country for Tax Determinatio

com_tax-doc_number = komk-belnr. " Document Reference Number

com_tax-txjcd_l1 = ttxd-leng1. " Length of the 1th part of Ju

com_tax-txjcd_l2 = ttxd-leng2. " Length of the 2th part of Ju

com_tax-txjcd_l3 = ttxd-leng3. " Length of the 3th part of Ju

com_tax-txjcd_l4 = ttxd-leng4. " Length of the 4th part of Ju

com_tax-matnr = komp-matnr. " Material

com_tax-unit = komp-vrkme. " Sales Unit of Measure

com_tax-currency = komk-waerk. " Currency Key