cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new data in Script

Former Member
0 Kudos

Moved by moderator to correct forum

Hi

Right now document no is displayed as 12345 in script, as it is defined in script as &BKPF-BELNR&.

Now I want to display document with GR. means adding GR in the curent coming value.

I made change in script as GR&BKPF-BELNR&..

BUt unfortunately its not working :(.

kindly help how to do it?

THanks in advance.

Edited by: Matt on Nov 8, 2008 7:31 AM

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

Have you tried this IM &'GR'BKPF-BELNR& .IM being the paragraph format.

Thanks,

Ahsan

Former Member
0 Kudos

Hi

Thanks ( without using IM but ) with the format u mentioned I tried, its working.

Its now showing the GR in output along with no.

Ajay.

Answers (4)

Answers (4)

Former Member
0 Kudos
  • Right now document no is displayed as 12345 in script, as it is defined in script as &BKPF-BELNR&.

  • Now I want to display document with GR. means adding GR in the curent coming value.

  • I made change in script as GR&BKPF-BELNR&..

  • BUt unfortunately its not working .

The way you have written is correct. It should come for that. Please check may be space is not sufficient for that to write.

Regards,

Aswini.

Former Member
0 Kudos

in driver program

take a field g_belnr(12).

concatenate 'GR' BKPF-BELNR into g_belnr.

in sap script form u display &G_BELNR& instead of &BKPF-BELNR&

or

in sapscript form u display 'GR' &BKPF-BELNR&

Former Member
0 Kudos

Hi Ajay,

Please write GR in quotes as 'GR'. A better idea would be to concatenate 'GR' and BELNR into another variable in the print program, and print that variable in the sapscript form.

Regards

Vatsala.

Former Member
0 Kudos

Hi......

In Script if you want to display any thing on the output.....

Then you have to use & sign...

for ex in your case....


&GR&

Try with this.......

Thanks

Saurabh