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

PO output problems

Pavithra_madhu
Participant
0 Likes
1,582

Hi all,

In PO output there are two issues have to solve.

  • Some field values are there in table and also when debugging script, value is there but when display PO print values are blank.

          eg: name2 has value but in output field value is blank

  • In PO some fields are correctly tab set in print preview but when get print out field values are shift which different than in print preview.

          eg: Some fields have shift to left and some fields have shift to right .

Are there any suggestions to correct above errors..

Thanks,

Pavi

HI all,

Found solution to use ADDRESS ENDADDRESS to print address.. and remove tab and keep &SPACE& between fields.

Thank all

8 REPLIES 8
Read only

Former Member
0 Likes
1,508

Hi Pavi,

Please remove space from begining  for using every field  like &EBELN(C)&.

then  space will be out and value will be print in sap script.

and second point , you can set tab delimit in your paragraph format and use the same paragraph tab in your Script then value will be come to right place.

Please try both solution then problem will be resolved.

Regards,

Prasenjit

Read only

0 Likes
1,508

Hi Prasenjit,

1) This is a sample code in PO script. Tab have set but in here for some POs &name2& value not shown in output. But it is shown in script debugging. There are no space to remove as shown below..

V1&lfa1-name1& ,, &w_budno& ,,&ekko-ebeln&
V1&LFA1-NAME2& ,, ,,
V1&LFA1-NAME3& ,,&W_ANGNR& ,, &ekko-bedat&

2) For second one in above code when  &LFA1-NAME3&  and &W_ANGNR& fields are empty &ekko-bedat& print in left side corner ignoring the tab. That date field correctly shown in print preview but when print only the problem occur.

Read only

0 Likes
1,508


Hi,

Please use sap script code

V1 &LFA1-NAME2(C)&

V1&LFA1-NAME3(C)& ,,&W_ANGNR(C)& ,, &ekko-bedat&

and if you set exact tab  then value will be reflected correctly.

Please set V1 paragrah format tab setting based on your value.

you can try to copy V1 to  new paragraph and update teh same in the SAP script  and check.

regards,

Prasenjit

Read only

0 Likes
1,508

hi Prasenjit,

Still same output..

Read only

Pavithra_madhu
Participant
0 Likes
1,508

For 1st question I found that values print when we add any character after the variable .  And also values not shown in print preview are single words..

Are there any solutions??

Read only

Former Member
0 Likes
1,508

Hi Pavi,

Check the layout width,whether there is enough space for printing the name.

Regards,

Noufal Parappurath

Read only

0 Likes
1,508

Hi Noufal,

Layout length is enough. Because in here &LFA1-NAME2& ,, ,, i can get output on print preview when modify like below.

&LFA1-NAME2& test ,, ,,


Here without 'test' if i add '.' also it display the content in the field. Otherwise not shown in print preview.. Why is that? How to fix that issue..


Regrads,

Pavi

Read only

Pavithra_madhu
Participant
0 Likes
1,508

HI all,

Found solution to use ADDRESS ENDADDRESS to print address.. and remove tab and keep &SPACE& between fields.

Thank all