cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Data in a single line - Invoice SAPScript

VenuAnumayam
Participant
0 Kudos

Hello Experts,

We have copied MR_PRINT SAPScript into a Custom one with some modifications.

It has the following fields:

No. Material, Description, PO#, PO Item, G/R Number, G/R Date, Batch, Qty, Price, Net Value.

It should print the data continuosly in 1 line like this:

For eg:

No. Material, Description, PO#, PO Item, G/R Number, G/R Date, Batch, Qty, Price, Net Value.

1 9723974, XXSEREE, 12312, 0010, 3453453, 04/05/10, 98234, 234.00, 90.00, 8923.00

However, when printing the Form though, I see the data is splitting into multiple lines like this:

1, 9723974, XXSEREE,

12312, 0010, 3453453, 04/05/10,

98234, 234.00, 90.00, 8923.00

Could you please let me know what is the issue? How can get the lines displayed in single line?

Please help me. I greatly appreciate it. My SAPScript knowledge is poor.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

Put the code in the script editor as below


P1                                       No.,,Material,,Description,,PO#,,PO Item,,G/R Number,,G/R Date,,
=                                         Batch,,Qty,,Price,,Net Value


P1	 	,,&FIELD1&,,&FIELD2&,,&FIELD3&,,&FIELD4&,,&FIELD5&,,&FIELD6&,,
=	 	&FIELD7&,,&FIELD8&,,&FIELD9&,,&FIELD10&,,&FIELD11&,,&FIELD12&

P1 is the paragraph format.

,, represents tab space and we can give the value for tabs in the paragraph format P1

Regards,

Jeyabalasubramanian J.

VenuAnumayam
Participant
0 Kudos

Hi,

Thanks a lot for your responses. Sorry for my delay. I have everything in MAIN Window. However there are 4 different Text-Elements for this data.

So I think I can't put everything together.

Here's the code.

/E ER_TABLE_HEAD
UL &ULINE(95)&
H1 No| Material| Description| PO| PO Item| Batch Number|GR Doc| Qty| Price\Unit| Net Value
     &ULINE(95)&
/*Material number
/E ER_MAT_MATNR
R1 &g_posnr(5)&| &ekpo-matnr&| &ekpo-txz01&
/* &ULINE(90)&
/* MATERIAL ITEMS
/E ER_MAT_POS
* | &ekpo-ebeln&| &ekpo-ebelp&| &ekbe-charg&|  &ekbe-belnr&|
/E ER_PRICE
* | &rseg-menge&| &ekpo-netpr&| &rseg-wrbtr&|  &g_sign_wrbtr&

Please help me what I need to change. Thanks a ton.

Former Member
0 Kudos

Hi Ravi,

You are getting the output in different lines because of these text elements.

Just check if you can include all the data that need to printed under one text element.

Comment all other text elements.

You need to debug the driver program and check if all the text elements that are printing

this data are called for same number of time. If the case is so, then there is no problem in including all data under one text element.

Hope it helps.

Thanks,

Daya.

Former Member
0 Kudos

Can you please paste the coding lines wrriten in sap script editor for the display of these lines?