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

condition for konp.

Former Member
0 Likes
795


Hi all,

I want to display  KONP-MWSK1 field in VA01,02 and 03 transactions.

I have added it to screen painter, coded as below in PBO module.

Data wa type konp.

SELECT SINGLE * FROM konp INTO wa .

konp-mwsk1 = wa-mwsk1.

Now it is displaying the same tax code all the time when i see in VA01, 02 and 03 transactions even for different materials, soldto party and ship to party.

what condition i must write to get the correct tax code for the creating va01 transaction.

Thanks in advance,

regards,

Cheruku.


Hi all,

I want to display  KONP-MWSK1 field in VA01,02 and 03 transactions.

I have added it to screen painter, coded as below in PBO module.

Data wa type konp.

SELECT SINGLE * FROM konp INTO wa .

konp-mwsk1 = wa-mwsk1.

Now it is displaying the same tax code all the time when i see in VA01, 02 and 03 transactions even for different materials, soldto party and ship to party.

what condition i must write to get the correct tax code for the creating va01 transaction.

Thanks in advance,

regards,

Cheruku.

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
731

In VA01, so before creation, you will have some serious problem to read this information from database...

Better try to access to internal table TKOMP  of the main program (READ TABLE) put the module code in one of the include provided MV45AOZZ.

Regards,

Raymond

Read only

0 Likes
731

hi raymond,

Cant i do it in mv45afzz.

regards,

cheruku

Read only

0 Likes
731

Both includes are used in the same main program(s) so yes, but that is not "best practices" (click on hyperlink for reference)

Regards,

Raymond