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

How to get the currency field from KONV

Former Member
0 Likes
5,346

Hi friends,

in one scenario i want to compare the VBFA-WAERS and KONV-WAERS .

for this i want to pass some values from VBFA to KONV to get WAERS . i don't know which values to be pass. Please help on this.

Regards,

Muralidhar

1 ACCEPTED SOLUTION
Read only

naveenvishal
Contributor
0 Likes
4,385

If you want to relate VBFA to KONV, it is through field KNUMV (Document Condition number). Now KNUMV, you can easily get from VBRK based on billing doc picked from VBFA table.

17 REPLIES 17
Read only

naveenvishal
Contributor
0 Likes
4,386

If you want to relate VBFA to KONV, it is through field KNUMV (Document Condition number). Now KNUMV, you can easily get from VBRK based on billing doc picked from VBFA table.

Read only

0 Likes
4,385

thank u naveen.

But there is no field KNUMV in VBFA to pass KONV.

Regards,

Muralidhar

Read only

0 Likes
4,385

Pick Billing doc No (based on Document category) from VBFA and pass it on to VBRK for picking Document Condition number (KNUMV). Based on KNUMV for can fetch the respective data (WAERS in your case) from KONV.

Read only

0 Likes
4,385

The document number which you are passing to VBFA must be sales order , delivery , invoice etc. Then you can find KNUMV from this dcoument number.

If it is sales order, pass it to VBAK to get VBAK-KNUMV. If delivery then pass it to LIKP to get LIKP-KNUMV. If it is invoice, then pass it to VBRK to get VBRK-KNUMV.

You can use this KNUMV value to read from KONV table.

Also check with your functional person.

Thanks,

Devendra

Read only

Former Member
0 Likes
4,385

You will not get a direct relation between VBFA (Doc Flow)and KONV(Condition Table)..You will have to go through another table based on what you are searching..

With Sales Document

you will have to use table VBAK (Sales Header) and get KNUMV to connect to KONV-KNUMV

With Shipping.Delivery

you will have to use table LIKP (Sales Header) and get KNUMV to connect to KONV-KNUMV

With Billing

you will have to use table VBRK (Sales Header) and get KNUMV to connect to KONV-KNUMV

Hope this helps.

Regards

Read only

0 Likes
4,385

Hi

     Get the sales order number from preceding document field vbelv from vbfa table then get the condition number from vbak table then compare currency field from vbak with konv table.Hope it will solve your problem.Click answered if solved.

Read only

former_member201275
Active Contributor
0 Likes
4,385

I installed the Tablescope program available somewhere here on scn, i think, for download. When I run this for these 2 tables i.e. VBFA and KONV I see a number of relationships, some of which are:

Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Likes
4,385


If the WAERK (document currency) is same as WAERS, then as already suggested, you can input the field KNUMV in VBAK where you get WAERK and get KNUMV value.   Pass this KNUMV to KONV so that you will get the desired result.

On the other hand, if WAERK would be different in some cases, then you can straightaway take the WAERS from program RMCV0100 where all Info Structure data would be stored.

G. Lakshmipathi

Read only

0 Likes
4,385

Dear Laxshmipathi,

In KONV there is 4 key felds  Doc.Condition (KNUMV) ,item(KPOSN),step number (STUNR), counter(ZAEHK). if we pass all the values to this fields then we can get the exact (KONV-WAERS). so i am passing only  one value which is present in VBFA     KONV-KPOSN = VBFA-POSNV. so for this i am getting dublicate records. please suggest what values should be pass to STUNR , ZAEHK  and where can i get.

Regards,

Muralidhar

Read only

0 Likes
4,385
 i am getting dublicate records

If you validate from VBFA table, system will populate one header data and one line item data and hence, you are getting duplicate records.  In order to avoid this, pass POSNV as "Equal To" blank and check.

G. Lakshmipathi

Read only

0 Likes
4,385

this is the data which is present in konv internal table.

KNUMVKPOSNSTUNRZAEHKKAPPLKSCHLKDATUKRECHKAWRTKBETRWAERS
$1 101113VPR0020140803C1029.54AED
$1 101001V20140703C1030.45SAR
$1 108002V20140703C1030.45SAR
$1 108113V20140703C1030.45SAR
$1 108164V20140703C1030.45SAR
$1 108225V20140703C1030.45SAR
$1 108246V20140703C1030.45SAR
$1 108267V20140703C1030.45SAR
$1 109208V20140703C1030.45SAR
$1 109309VSKTO20140703A30.450
$1 1094010VVPRS20140703C1011.96SAR
$1 1095011V20140703C1018.49SAR
$1 1095114VZCST20140803A11.961000
$1 1095215VZADM20140803A11.96100
$1 1098112V20140703C1013.16SAR
$1 1098216VZMKU20140803A13.16250

Regards,

Muralidhar

Read only

Lakshmipathi
SAP Champion
SAP Champion
0 Likes
4,385

Better ask your functional consultant to execute SQVI where they can execute this report via Logical Database without any ABAP development.

G. Lakshmipathi

Read only

suresh_mamilla
Participant
0 Likes
4,385

Hi Murali,

     Make use of the field KNUMV(Condition document number).

Read only

0 Likes
4,385

Hi Suresh,

i have passed knumv value, then also i am getting duplicates , so we have to pass remaining two fields STUNR , ZAEHK, then we can exact.

Regards,

Muralidhar

Read only

Former Member
0 Likes
4,385

if you will pass only item No into Konv from vbfa so obviously it'll fetch Duplicate Data also, so better is that take  Doc. condition No from vbak and pass into konv and pass also vbak-currency and check sy-subrc value.

Regards,

Nadim

Read only

0 Likes
4,385

Hi Nadim,

i am using Deliver order Number not sales order.

Regards,

Muralidhar

Read only

0 Likes
4,385

Hi Muralidhar,

you can not check the currecy with Delivery and KONV Data but you can check Sales order currency as well Billing document Currency. bcz Doc Conditaion not generating while create Delivery .

Reards,

Nadim