10-12-2010 6:01 AM
I have copied ME9F to 'ZME9F'. Now I want to display the PO using this tcode. But when I view the PO using this tcode , the vendor address is getting printed at the item level instead at the top of the page (header address).
Along with creation of ZME9F, I have also copied standard RM06ENDR_ALV to ZRM06ENDR_ALV. I have made minor changes to ZRM06ENDR_ALV. This program and tcode was working absolutely fine since many months but suddenly it started giving these problems. I guess some of my colleague might have change the porgram (not only ZRM06ENDR_ALV but it could be any other program also). Now I am not able to find the problem, please help me ! Let me know if you require any other details. Thanks.
10-12-2010 6:40 AM
Hi Reshmi,
Check if any printer or the page format has changed.
Regards,
Immanuel.
10-12-2010 8:01 AM
Hi,
Please check your smartform or script window position. They might have adjusted that also
Regards,
Prabu
10-14-2010 12:52 PM
Hi,
If the printer / page format is changed, then the problem should appear in the print preview also. Am I correct?
But in print preview, PO is getting displayed properly but in case of output message (in the spool), the vendor address is getting displayed at the item level.
10-14-2010 1:15 PM
Hi Reshma,
Yes you are correct. If the printer is changed then it will reflect in the preview also.
Did you try to debug the form?
Regards,
Immanuel.
10-14-2010 1:36 PM
Yes i debugged the problem, and found that
1> in case of ME23N AND ZME9F, the NAST structure is little bit different .
If I run ZME9F, then the fields DATVR, UHRVR, CMFPNR are coming as all 0's.
But If I run ME23N then are proper values in these fields.
2> Also pekko-werks and pekko-adrnr are coming as blank in case of ZME9F. However in case of ME23N these fields show proper values. (in program LMEDRUCKF1N).
Actually the condition is like this:
If (pekko-werks and pekko-adrnr ) = blank
then display vendor address at the item level
else
display vendor address at the header level.
Since pekko-werks and pekko-adrnr are blank , the vendor address in my PO is getting displayed at the item level (which is incorrect). i dont under stand why the nast values are diff. in case of ZME9F and ME23N?