on 11-24-2006 12:42 PM
Hi All,
I'm using table header values to print it in the form and im doing it like
&VBAK-VBELN&. How can I populate the value with vbak-vbeln - 1 in the same place instead of changing the driver program.
Can somebody help me with this please.
Thanks,
Kiran.
Hi kiran,
wat is the actual scenario u r using this becoz without changing print program if u want to include directly in actual programu need to have access key.else u can copy the program to a Z program and startmodifying it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The driver program is the one which is copied from a standard SAp program and it is looping in it a standard FM and i couldnt change the driver program. Instaed I can change it in the Form when it prints it. I have got the access rights to change the script . Can yiou tell me how to chnage the value while printing please.
Thanks,
Kishore
Kiran,
as u said the field value is VBAK-VBELN this is nothing but sales oder header data.so, for this u have invoice smartform, to pass values into this we have to pass tables as work area and use them in the smartform layout .no need to change the print program but if the form layout is changed then change field values accordingly.
regards,
Durgaprasad
Hi Durga,
Sorry its not vbak-vbeln that I need to change. Its all done and I am passing all the values in the table and getting the output correct. In one of them its houls print the line item numbers like 001/002 of 6 where there are 6 line items and the page can only print 2 of them then it should say 001/002 of 006. But when the form is printed its just picking up the last line item of that page. Thats how the sap standard program has been written. So its like I have to substract that 002 by 1 and populate it n the form. Did you get me??? Please let me know how i can do that.
Thanks,
Kiran
hi kiran,
try doing it by using PERFORM in scripts...
ex: u can give as
/: PERFORM <form> IN PROGRAM ztest
/: USING &VAR1&
/: USING &VAR2&
......
/: CHANGING &VAR1_OUT&
/: CHANGING &VAR2_OUT&
......
/: ENDPERFORM
in ztest..
FORM MY_FORM tables in_tab structure itcsy
out_tab structure itcsy.
data: varn like ....
read table in_tab with key name = 'VARN'.
if sy-subrc = 0.
move in_tab-value to varn.
endif.
read table out_tab with key name = 'VAR_OUTN'.
if sy-subrc = 0.
move <value> to ot_tab-value.
modify out_tab index sy-tabix.
endif.
ENDFORM.
hope this helps,
do reward if it helps,
priya.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.