Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Tab problem in PO print out

$
0
0

There was a issues on my PO print out which unable to find solution using sap forum also.

 

  • Issue is in address field contain values but not shown in the printout.

          There I have set tabs in paragraph format. Then write scripts like below to get address.

 

               &LFA1-NAME1& ,, &W_BUDNO& ,,&EKKO-EBELN&

               &LFA1-NAME2&  ,, ,,

               &LFA1-NAME3& ,,&W_ANGNR& ,, &EKKO-BEDAT&

 

 

            In here for some fields have values and when i debug the script also i can see the value but when print preview shown that value not display.

            As identified this happen when value is a single word.

 

          Solution


I found two ways to solve the problem.


     1.   Introduce control command ADDRESS ENDADDRESS to the script. And then all values are shown correctly.

         

                        

/:ADDRESS PARAGRAPH V1
/*  TITLE    &LFA1-ANRED&
/:  NAME     &LFA1-NAME1&, &LFA1-NAME2&,&LFA1-NAME3&, &LFA1-NAME4&
/:  STREET   &LFA1-STRAS&
/:  POBOX    &LFA1-PFACH&  CODE &LFA1-PSTL2&
/:  CITY     &LFA1-ORT01&, &LFA1-ORT02&
/:  POSTCODE &LFA1-PSTLZ&
/:  COUNTRY  &T005T-LANDX&
/:  REGION   &LFA1-REGIO&
/:  FROMCOUNTRY &T001-LAND1&
/:ENDADDRESS

 

     2. Remove tabs and keep &SPACE(10)& to get output.

 

Hope this will help u.

 

Thank u.       

Pavithra


Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>