Application Development 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: 

Take time to print priview in PO

Former Member
0 Kudos

I am not able to see print priview in ME23N . However we are using customize smartforms and output type. Please help asap.

Regards,

Priyanka.

1 ACCEPTED SOLUTION

former_member196331
Active Contributor
0 Kudos

I hope you have written the wrong code.

Me23n means Only single purchase order, Am i correct.

What is the meaning of the below query.

select knumv kposon kschl kwer from konv into corresponding fields of table it_konvl for all entries in it_ekpo where kposn = it_ekpo-ebelp.

You are fetching all purchase orders item level data. Suppose if it_ekpo-ebelp is 10
Then the above query will fetch all purchase orders item level 10 Data.
Execute the query in Se38 .

You need to pass ekko~KNUMV to konv~knumv.

Please Check the above logic.
hope you understood What you did Wrong.

8 REPLIES 8

JL23
Active Contributor
0 Kudos

Does it take time, or are you not able at all? This would actually be much different issues.

Change the customizing back to the standard form and test the scenario again. If the preview works with the standard form then you can be sure that your developer made something wrong.

Former Member
0 Kudos

error.png I'm not able to see print preview, It show's error message as attached. How to optimize code.

Chintu6august
Contributor
0 Kudos

Hello,

here is key fields linkage between EKKO, KONV:

EKKO-KNUMV - Number of the document condition

KONV-KNUMV - Number of the document condition

Well to achieve the same you can make use of inner join on EKKO,EKPO and KONV.

thank you!!

former_member196331
Active Contributor
0 Kudos

I hope you have written the wrong code.

Me23n means Only single purchase order, Am i correct.

What is the meaning of the below query.

select knumv kposon kschl kwer from konv into corresponding fields of table it_konvl for all entries in it_ekpo where kposn = it_ekpo-ebelp.

You are fetching all purchase orders item level data. Suppose if it_ekpo-ebelp is 10
Then the above query will fetch all purchase orders item level 10 Data.
Execute the query in Se38 .

You need to pass ekko~KNUMV to konv~knumv.

Please Check the above logic.
hope you understood What you did Wrong.

raymond_giuseppi
Active Contributor
0 Kudos

Look in your system for good old SAP provided Smartform like Y640_MMPO_A, If found ask your Abaper to look at the global/initialization code for PREPARE_CONDITION and to adapt his own code. If not found look at 852250 - updated /SMB40/ preconfigured form for 470 and 640 and similar notes.

Regards,
Raymond

0 Kudos

Check the Logic once..when fetching the data from the table KONV ...

Former Member
0 Kudos

Hi,

Actually this smartform developed by another developer. can any one guide me for the same. Where to go and change query.

Former Member
0 Kudos

Hi Guru's,

Please reply.