cancel
Showing results for 
Search instead for 
Did you mean: 

How to Fix the row in sap script, its urgent......

Former Member
0 Kudos

Hi Experts,

first i explain my sap script, i have print void check in my script client give readymade format means box are there, lines are there. i have to fix in box and line data form database table. everthing is working fine. i got all data. i have total 6 window in my script .but i have one issue In my sap script in header window total five rows... like below

Check voucher no:8888

check No: 1234

Date:1/28/2007

Bank:xyz

Batch no: 5678

now sometime check voucher is balnk....

Check voucher no: BLANK/NULL

check No: 1234

Date:1/28/2007

Bank:xyz

Batch no: 5678

because of that all rows are move up side and all window also move up side and so script not fix to the box and line all data are seen not perfectly... so guru`s how to fix the row and window in script....

its urgent...

Waiting for ur reply

Thanks & regards

Jigar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please check if you have something similar as below:

Form Declaration:


/E VOUCHER
/: Check voucher no: &g_voucher&
/: check No: &g_check&
/: Date:&g_date&
/: Bank:&g_bank&
/: Batch no: &g_batch&

Program:

"fill values for voucher, chcek no, date, bank & Batch no.

"call function write_form with elelment 'VOUCHER'

So when you call element VOUCHER all five lines are displayed irrespective of their values.

Regards

Eswar

Former Member
0 Kudos

Hi Eswar,

thanks for quick reply.

but, Its not similar to my answer. I want to fix my row and window. my quiestion is: suppose one row is blank so all data are move up side. and window also. so what i do for that??

give me suggetion.

Thanks & Regards

Jigar

Former Member
0 Kudos

Hi,

If i can understand your question, you wanna print your output on a pre-printed format...

See that you have the Voucher details in a separate page window.

To define the position of Page Window, do as below:


1. SE71.
2. Form Name
3. Page Windows
4. Display
5. Double click on Voucher Page window
"Below you can find the table Standard Attributes, here we can set the margins that define the position of the window. Use it accordingly.

Regards

Eswar

Former Member
0 Kudos

Hi,

Follow the below steps . Definately your issue will bve resolved.

Let us suppose you are printing following fields

PH &v_text&

PH &v_text1&

PH &v_text2&

you will get the output as you expected.

and if you have any conditions for these fileds

/: if v_text is not initial.

PH &v_text&

/: endif

PH &v_text1&

PH &v_text2&

if you have data in each field then you will get output as expected .

But when v_text is initial.

the data will be moved up wnhich is happening in your case.

so what you need to do is?

/: if v_text is not initial.

PH &v_text&

/: else

PH (Here you need to mention empty line with same paragraph format

/: endif.

PH &v_text1&

PH &v_text2&

Reward points if useful

Regards,

Nageswar

Former Member
0 Kudos

Hi Nagesh,

I will go through ur code and i update you soon.

thanks

Jigar