cancel
Showing results for 
Search instead for 
Did you mean: 

Values are not passing from driver program to script

Former Member
0 Kudos

Dear All,

This query is very urgent one. I will reward with goood points if I get an answer for this query.

I am making modification on credit memo script . I am not using the standard driver and smartform. The problem is that when the program is run independently the values are passing to the script but when the driver program and script is attached to the VF03 transaction no values are coming. But all the values that are hard coded in the script is getting printed.

Expecting an early reply.

With warm regards,

Biju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Biju,

Please check that in ur driver program whether u have created the Entry routine in that u can call ur smartform.

Put breakpoint before u r calling ur smartform in driver program an chk whether data is populating correct in ur variables or internal table.

Then chk the variable and internal table which u r passing are correct and compare with import,export and table parameter of smartform.

See standard progarm 'RLB_INVOICE' for ur refference.

Reward if useful.

Edited by: Anil Mane on Apr 3, 2008 7:34 AM

Former Member
0 Kudos

Dear Mane,

Thanx for your quick reply.

I am not using a smartform, I am using Script. I have created the entry routine in the driver program as same in the standard driver 'RLB_INVOICE'. I have debugged the driver program and data is getting populated in the driver program. In the script I am using the same variables as in the driver program. Then also the values are not getting displayed in the script.

And also I want to know whether I can attach 'Z' driver program and script instead of standard driver and smartform.

Please help me.

With warm regards,

Biju

Former Member
0 Kudos

Hi,

Yes U can Attach ZDRIVER program and Scripts in NACE.

If u r using Scripts give your SCript Name under Column FOrm In NACE.

Regards

Sandipan

Former Member
0 Kudos

Yes u can attach zdriver program as wel as zscript.

1. You can debug script also and see whethr value is getting populated or not.

Goto se71->Give script name->Utilities->Activate debugger

chk your windows,text elements and variable names.

2. One more thing wthr ur testing ur program in same client

becz script is client dependant but this may not be the case .

Former Member
0 Kudos

Dear Mane,

I have debugged the script but the values are not passing from driver to script. Its enterring all the windows and printing the hard coded values.

I am developing and testing in the same client.

Can you plz suggest me some other ideas.

With warm regards,

Biju K.George

Former Member
0 Kudos

Hi Biju,

1. If possible plz give me lines of ur code so that i

can see which variables u r passing and how u have writen the code in script.

2.chk whtr u r not clearing the variables.

3. declare one variable globaly in driver prog hard code that one and put in script and see.

Former Member
0 Kudos

Dear Mane,

Can you please give me ur email id. I will mail it to you.

With warm regards,

Biju

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Since u have already attached the driver pgm & from name in the o/p type.

check ur Invoice -- Change --> goto --> header --> o/p

here u need to give the ur o/p type & medium option as print o/p . give communcation method

after all thse save the invoice .

then go to invoice -- issue o/p

Reward points if it is Useful.

Thanks,

Manjunath MS

Former Member
0 Kudos

Dear Manjunath,

I have done all these steps already.

Can you plz give me some other solution.

With warm regards,

Biju K.George

Former Member
0 Kudos

Hi,

Create an entry routine first for your program

Go to NACE>V3 Billing>Output Types>RD00(Invoice)>Then Click on processing Routines-->

Give Your Program Name Instead Of RLB_INVOICE and Smartform Give your Smartform name

Regards

Sandipan

Former Member
0 Kudos

Dear Sandipan,

I have created a new output type and attached the driver program and script to this output type.

The program is getting called and all the hard coded values in the script is getting printed. Only the values that are passing from driver to script are not getting populated.

Please help me. I have to deliver this today.

With warm regards,

Biju

Former Member
0 Kudos

Hi,

I think Error is In output type at the Time of Creating Output Type Copy the Same Attribute as RD00.

And Try To debug the sapscript using Program RSNAST00 then Find TNAPR-PGNAM and Put a break point there.

Regards

Sandipan

Former Member
0 Kudos

Dear Sandipan,

I have checked the output type. Its the copy of RD00 and having the same attributes.

I tried to debug the program using RSNAST00 but its giving an information pop up dialog box as " 0 outputs were processed in total (0 successfully,0 incorrectly)".

I have given

Output application : V3

Object key : 90000528

Output type : ZFCR

Transmission medium : 1

Printer default : LP01

Whether this is correct.

With warm regards,

Biju

Former Member
0 Kudos

hi,

What u have given is correct

Form my end it is difficult to figure out exact problem

i have tried a same thing in my end and it is giving me exact output.

Try to Use The RD00 output type.

regards

Sandipan

Edited by: Sandipan Ghosh on Apr 3, 2008 12:16 PM

Former Member
0 Kudos

Dear Sandipan,

Can you plz give some more ideas. Here I am fed up with this. Have to deliver it oday.

With warm regards,

Biju