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: 

PROBLEM WOTH PRINTING SAPSCRIPT

Former Member
0 Kudos

Hii avery body ...

well i am having a problem that when i am displaying the output with tcode va02 .. the first time i am issuing the output the tel no is not getting diaplayed and when i am 2nd time again issuing the output thn the same is getting populated corectly .. can anybody help me with this..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rohit,

Put the break point in the print program where the data s getting populated and activate debugger for your sapscript form.You will get good idea why it is happening.

7 REPLIES 7

Former Member
0 Kudos

Hi Rohit,

Put the break point in the print program where the data s getting populated and activate debugger for your sapscript form.You will get good idea why it is happening.

0 Kudos

well i have debugged it but wat common thnk i have fnd in both the cases is that ...

PERFORM FETCH_STREET_NO IN PROGRAM Z_BASIS_COMMON_ROUTINE

USING &VBDKA-ADRNR_WE&

CHANGING &STR&

CHANGING &TEL& *

CHANGING &MOB& *

ENDPERFORM

this is the code which is there in the script .. so whene debbuging i cant c the filds of &tel& and &mob& while debugging . i mean the 2 stattements marked as *

0 Kudos

go to se38 enter <b>Z_BASIS_COMMON_ROUTI</b>NE programm

u find that.

0 Kudos

Execute it second time see from where these two fields are getting populated as you told in the earlier thread that when you are executing it second time the telephone number is getting printed.

Put the break point in the program Z_BASIS_COMMON_ROUTINE

the processing will go to the program Z_BASIS_COMMON_ROUTINE after the Sapscript form.Check what is happening.

Message was edited by: mukesh kumar

0 Kudos

ya the values r getting populated the 2nd time ... but the * marked statemnet r not there ...

the values r getng displayed by the folwng statement

,,TELNO./MOBNO,,<B>&TEL&</> / <B>&MOB&</>

0 Kudos

Just debugg smartly.In the sapscript data does not gets populated.All the data will be populated in the print program only.Sapscript form only displays the populated data from the print program.Check at which point the data is getting populated in print program,and why it is not getting populated at that point first time.

0 Kudos

thanks mr mukesh it has been solved .. actualy i had included the 2 statemnet in a diff perform ..