SAP Script issue
Hi,
I am customizing a standard form (f110_prenum_chck) into a custom form where I need to get the vendor information below the check with date of the document,type,reference,original amount,balance due,discount and the final payment amount. There is another window with the same data for a customer retain copy.I can find the fields in regup,reguh,regud tables except the final payment amount field. I think it needs to be calculated. As I cannot do the coding in SAP script, how can I do this? and if a vendor has 2 documents then one line item is been printed in the main window and the second one is falling under the customer copy window, but I need both the line items in both the windows as one is a vendor copy and the other one is a customer copy.
Please help me with this situation
Regards,
Kiran
Moderator message - Please use a meaningful subject line - post locked
Edited by: Rob Burbank on Sep 10, 2009 12:25 PM
Hi Ian,
theoretically i read that we can create 99 main windows in a page.
Is it feasible ? will it work properly in realtime?
Hope u might have created more than 1 windows in a page.
I am supposed to start code changes from tommorow, hence want to know the feasibility ahead of time.
Regards.
santosh.
Similar Messages
-
PLZ HELP SAP SCRIPT ISSUE (DYNAMIC BOX)
Hi all
I want to include a dynamic text (means number of lines can vary) inside a box .
please guide me how i can create this box whose size would be dynamic according to this text.
plz help i am not able to find ne solution
Thanx in advance
Edited by: SARABPREET CHADHA on Mar 14, 2008 11:33 AMFollowing things to be done in Driver program.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = TEXT_ID
LANGUAGE = PRINT_LANGUAGE
NAME = TEXT_NAME
OBJECT = TEXT_OBJECT
IMPORTING
HEADER = TABLE_HEADER
TABLES
LINES = TABLE_LINES
EXCEPTIONS
ID = 01
LANGUAGE = 02
NAME = 03
NOT_FOUND = 04
OBJECT = 05
REFERENCE_CHECK = 06.
then
CALL FUNCTION 'WRITE_FORM_LINES'
EXPORTING
HEADER = TABLE_HEADER
WINDOW = WINDOW
IMPORTING
FROMPAGE = FROMPAGE " not interested ?
TABLES
LINES = TABLE_LINES
EXCEPTIONS
FUNCTION = 01
TYPE = 02
UNOPENED = 03
UNSTARTED = 04
WINDOW = 05.
and then in sap script.
/: INCLUDE &THEAD-TDNAME& OBJECT &THEAD-TDOBJECT& ID &THEAD-TDID&
/: PARAGRAPH T6 LANGUAGE
Your text will apper in sapscript.
Award points if useful... -
Sap script issuing out put.
Hi,
I have a Z form and I want to issue out put for the from,
Iam unable to find out the output type for that form in TNAPR table.
and I don know the transaction to which it runs. I don know the print program also.
please suggest me a way how can i issue output to the form. I don have any information reg the form.Hi,
While designing the form you might have used some tables, depending on them you can find out which application they belong to(Say Invoice, Delivery, etc.) So then you can go for the respective Output type. Then proceed with NACE and follow the procedure as foe the normal form.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards -
Issue in alignment of PE51 data when printing it in SAP Script
Hi Experts
I have a SAP Script which is used to print Check at the top and Re-numeration Statement at the second half via RFFOUS_C program. The re-numeration statement is designed in PE51. The Check is designed in SAP Script and the PE51 form is printing inside the script using Main window/ Text Element : 525-HR.
The FM RP_IMPORT_PAY_STATEMENT is used inside the RFFOUS_C program which returns the table PFORM and the contents of the PFORM is exactly the re-numeration statement data and are getting printed one by one in the script using the variable REGUD-TXTHR. My object is fine with all the above said things. Only issue is with the alignment which is weird in SAP Script for the re-numeration part. But when I look into PC00_M10_CEDT (TCODE to view re-numeration statement) the output of designed PE51 form is good with proper alignment.When it is printed via script the alignment is not good at all.
There is some differences in the formats of printing between PE51 and SE71. Do not know what exactly it is. How I can resolve this issue?
Thanks
Siva
Message:SivaHi Madhu,
Sorry for the delayed response.See the below screen shot.This is how it prints now.The amounts are not aligned.Increasing the line spacing will increase only the space between the lines and i am using same character format for the variable REGUD-TXTHR.I would like to align them.
Thanks
Siva -
Issue in New Page Display in a SAP Script
Hi All
I have applied a line count logic in my SAP script, such that if lines are more than 32, Sub Total is displayed on this page(Sub Total needs 4 lines to display) and from next page,another heading starts. (Total around 39 lines can be displayed in one page)
Sub Total Text contains 2 lines of text, and 2 blank lines after it (Total 4 lines)
Now, if number of lines is around 36, Sub Total, doesnt fully display in this page and the 2 blank lines gets passed to the next page. And I am also firing a new page from my code. As a result, the 2nd page comes fully blank and the data is now being displayed at the 3rd page. How can I prevent the 2nd page from coming blank ??
I am using Function Module 'CONTROL_FORM' (or WRITE_FORM) to fire a new page.
I do not want to apply a line count logic for this as this wont be fool proof !!
I hope I have made the issue clear. Kindly help !!
Thanks
KPHi,
otherwise u can do one thing: U call the PERFORM in the SCRIPT FORM passing the &PAGE&(Contains the current Page No) value to it. take a loal variable and pass the PAGE value to the local variable and check for every line whether both &PAGE& & local varaiable are same, if not then set the FLAG value to 'X' (it means the new page has triggered).
Eg:
In Script:
/: lv_tabix = lv_tabix + 1.
/: PERFORM new_page_flag IN PROGRAM ZXXXXX
/: USING &PAGE&
/: USING &lv_tabix&
/: CHANGING &FLAG&
In ZXXXXX Program:
FORM new_page_flag USING int_tab STRUCTURE itcsy
CHANING out_tab STRUCTURE itcsy.
data : lv_page TYPE i,
lv1_tabix TYPE i.
READ TABLE int_tab WITH KEY name = 'LV_TABIX'.
IF sy-subrc EQ '0'.
lv1_tabix = int_tab-value.
clear : int_tab.
ENDIF.
IF lv1_tabix EQ '1'.
lv_page = '1'.
ENDIF.
READ TABLE int_tab WITH KEY name = 'PAGE'.
IF lv1_tabix GT '1'.
IF lv_page NE int_tab-value.
READ TABLE out_tab WITH KEY name = 'FLAG'.
IF sy-subrc EQ 0.
out_tab-value = 'X'.
MODIFY out_tab.
clear : out_tab.
ENDIF.
ENDIF.
ENDIF.
IF sy-subrc EQ '0'.
lv_page = int_tab-value.
ENDIF.
Hope it helps!!
Rgds,
Pavan -
Vertical line issue in SAP Script main window
Hi All,
I want to draw a vertical line in my main window in SAP Script output.
But problem is in main window i am printing some texts at the beggining then i am printing line items.
So this is not fixed line (box). It may increase/decrease based on text available before line items.
How can i manage this prining vertival line as i don't know height, top of this line!
Thanks in advance.
Thanks,
Deep.Hai Deep,
Use Elements as suggested by Kodarapu.
Now goto Paragraph Formats create a format for Item lines.
ex.
Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
now in "Tab Position" enter the spacing that you need for your item dispaly
ex.
Number Tab position Alignment
1 6.00 CH LEFT
2 25.00 CH LEFT
3 54.00 CH LEFT
The above example is for 3 items
Now in your Script Windows-> Main
do the following.
/E ITEM_LINE_A
IL &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
Hope it SOlves your Issue.
Cheers,
Suvendu -
Issue related to ADDRESS ... ENDADDRESS in SAP Script
Hi All,
I have a issue using ADDRESS .... ENDADDRESS in SAP Script.
ADDRESS PARAGRAPH AS
TITLE &WA_LFA1-ANRED&
NAME &WA_LFA1-NAME1&, &WA_LFA1-NAME2&
STREET &WA_LFA1-STRAS& HOUSE &WA_ADRC2-STR_SUPPL3&
POBOX &WA_LFA1-PFACH& CODE &WA_LFA1-PSTL2&
CITY &WA_LFA1-ORT01&, &WA_LFA1-ORT02&
POSTCODE &WA_LFA1-PSTLZ&
COUNTRY &WA_LFA1-LAND1&
REGION &WA_LFA1-REGIO&
FROMCOUNTRY &WA_T001-LAND1&
ENDADDRESS
I am using above code for printing vendor address.
Though Name3 & Name4 are not declared but their values are getting displayed if value is available.
Though Street2, Street3 are not declared but their values are getting displayed if value is available.
Even title should not be displayed if available also.
I want only below fields to be displayed:
Name 1
Name 2
Street/House Number
Street 4
Postal Code/City
Country Name (This one declared below ADDRESS ... ENDADDRESS)
I don't want to dislay other fields if they have value also.
How it is possible!
Thanks in advance.
Thanks,
Deep.Hi Deep,
Basically the variables that u havent mentioned in the sap script will never be printed.
In the code u have not mentioned the variables Name3, Name4, Street2, Street3...so they will never be displayed.
Please check your code again...i think somewhere u must have written
&WA_LFA1-NAME3&
&WA_LFA1-NAME3&
etc
if so please remove them. Otherwise the code u have written is perfectly fine.
or else in ur driver program, dont move all the values to workarea...move only the values that u need to display and use them in ur script.
Regards,
Radhika -
Multiple line issue in sap script
Hi All,
There is a window in the sap script.
The window consists of a text element and i am displaying 4 lines of text in that window.
Sap script:
/E Reason
AC &LINE&
In the source code, an internal table will have 5 text lines and those 5 lines should be reflected in sap script.
The source code as follows.....
loop at li_tline.
CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'
EXPORTING
NAME = 'LINE'
VALUE = li_tline-tdLINE.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'REASON'
WINDOW = 'REASON'
function = 'APPEND'.
endloop.
In final output, the last line of the internal table is reflacting..... Hope its getting over written each time in the loop.
How to make the code, so that i can reflect all the lines from internal table to the sap script....??????????????
Please help me, as this issue is very much urgent..........
Regards
PavanHi
Do like this.
declare 5 variables each of 80 char length.
data: v1(80), v2(80), v3(80), v4(80), v5(80).
Read the Internal table li_tline with index and move each line to different variables and write those variables in the script.
if not li_tline[] is initial.
read table li_tline index 1.
if sy-subrc = 0.
v1 = li_tline-tdline+0(80).
endif.
read table li_tline index 2.
if sy-subrc = 0.
v2 = li_tline-tdline+0(80).
endif.
read table li_tline index 3.
if sy-subrc = 0.
v3 = li_tline-tdline+0(80).
endif.
read table li_tline index 4.
if sy-subrc = 0.
v4 = li_tline-tdline+0(80).
endif.
read table li_tline index 5.
if sy-subrc = 0.
v5 = li_tline-tdline+0(80).
endif.
endif.
write the &V1& &V2& &V3& &V4& &V5& variables ins cript
Reward points if useful
Regards
Anji -
Issue with the font and alignment in SAP Script PDF
Hi Experts,
I have a problem with the font in SAP Script PDF conversion.
The output of the form is working fine but in the PDF the output is wrong.
There is a dutch letter ' ï ' which is pinted in the form output correctly but in the PDF output the character
has been changed to '#'.
and also the alignment of some text has beed changed without line spacing in between.
Please let me know what could be the problem and how to solve this issue.
Thanks in advance,
Regards,
Sankara Chakradhar.Hi Prabhudas,
I am using the FM 'CONVERT_OTF' to convert the data to pdf.
The FM CLOSE_FORM is creating the IT_OTF internal table and the CONVERT_PDF uses that internal table to populate the IT_PDF internal table and then using the FM 'SO_OBJECT_SEND' to send the PDF file to mail.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = g_filesize
TABLES
otf = it_otf
lines = it_pdf.
Regards,
Sankara Chakradhar. -
Hi ABAP Experts,
i got one object on SAP Script Forms, this is first time i am doing sap scripts, my issue is i created a form Debit memo from scratch and now i want to assign this form to standard print program RFK0RD00(PAYMENT NOTICE) and for this print program the standard layout form is F140_PAY_CONF_01.can u please tell what is the output type of this form and where to assign this ?
Thanks in Advance...Hello Srini,
First thing,how to find output type?
-Go to table TNAPR and enter your print program name in TNAPR-PGNAM and form name in TNAPR-FONAM.
-Look for the entry, the field value of TNAPR-KSCHL will give you the output type for your Print program and sap script form.
-TNAPR-KAPPL will give you the value for Application.
Second thing,how to assign?
-Go to transaction NACE
-Select the application(TNAPR-KAPPL).
-Press the button 'OUTPUT TYPES'
-Select the corresponding output type(TNAPR-KSCHL)
-Now select the folder 'Processing routines' on the left side.
-Enter your Program name (RFK0RD00), form routine name(mostly it is ENTRY) and then enter your form name (form designed by you from scratch).
Kinldy reply if this has helped you. -
SAP script printout alignment issue
Hi Experts,
I have facing one Script Printout Alignment issue.
SAP Script Form printing some Values in Table format.
While debugging( in debug mode ), I am getting the correct Alignment ( Proper table format with values ).
But in printout the Alignment( The vertical and horizontal lines are not printed properly ) is not correct.
Thanks in Advance.HI Glen Anthony,
I am not using any printer details.
from the Spol (SP01) I am checking the print priview.
Success in debug mode but not in Print.
Please suggest.
Thanks -
SAP SCRIPT Barcode Printing Issues
Hi ,
I'm printing 3of9 , barcode in sap script, which has width of 1CM and height of 1CM, the problem is once it's printed, barcode is being printed at higher position than it's supposed to be and creating alignment issues and also introduces blank lines in between .
Has any opne faced this problem , and how to over come this.
Regards,
RaghavendraWith SAPscript, barcodes are produced only by each printer (according to BarSimm or whatever technology you use). The preview is just an approximation made by SAP. So, you must trust your printer and adapt your SAPscript until it prints correctly.
-
Hi Gurus,
I am working on a SAP script... when I am printing the SAP script the last few lines of my text is missing... I got to know that there might be a problem in the page setting... i.e. the page may be set as a A4 and i am printing on letter... so can you please tell me how can I check what the page setting that my sap script is using.
Thanks,
Rajaeev GuptaHi,
Issue of 'part of the Text missing' is happening during Print Preview or when taking a print out?
I guess, the problem is due to height of the window, the height of the window where u printing this text is not able to accomodate the entire text. just increase the height of the window & try.
To know the page format that ur script is using, just follow the below steps:
Txn SE71--> give the Script form name > click on change/Display button> click on Header button (red hat symbol) in app tool bar or press F5 button --> now click on Basic Settings button. Here u see the Page Format in 'Set up Page' block...
Hope it helps!!
Rgds,
Pavan -
Issue regarding sap script pages
Hi all ,
my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or 3 or 5 paged depending upon the p.o. number given.
for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
this is urgent issue.
thanking u in advance,
sreenu.Hi all ,
my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or 3 or 5 paged depending upon the p.o. number given.
for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
this is urgent issue.
thanking u in advance,
sreenu. -
Hi.. one issue while woking in SAP Script
HI,
i have one issue.. i have to copy and Develop a SAP Script from the STANDARD Script.
SD_EXPORT_FUSD
in the Script.. The window F009 is getting printed..
in which i have written one variable &V55ENAFT-KZGBE&
After <F3>9. METHOD OF TRANSPORTATION</> <F6>(Specify)</>
When i debug.. the value is there in V55ENAFT-KZGBE but the value is not getting printed in SAP Script..
Can anyone please help me....
Thanks & Regards
GuhapriyanHi Guhapriyan,
Is the text "9. METHOD OF TRANSPORTATION" getting displayed. Check that, if it is not just increase the size of the window, coz if value is there for V55ENAFT-KZGBE definitely it will be displayed in the script. The problem should be with the size of the window.
Reward if helpful.
Regards,
Tushar
Message was edited by: Tushar Marshall Dass
Maybe you are looking for
-
Access Enforcer (error in creating a request)
Hi All, when i am creating a new request in Access Enforcer . After filling alll the details and clicking the submit button it is showing a error in creating request .Path not found.
-
Dedicated Server Process or Shared Server Process
Hi, I am little confused to justify the number of users that may be best to use dedicated server process or shared server process. Kindly advice.
-
Why my ipad mini is so slow on wifi?
Well, I've bought an iPad Mini last April. I'm more of a Microsoft guy but I decided to give Apple a chance... but since I got this device iTunes takes forever to load, pictures in tumblr, youtube videos, everything that comes from the wifi connectio
-
I don't wish for a discussion - I wish and require cancellation of my subscription - that's all
-
Install CS5 on Mac 10.8
Install CS5 on Mac 10.8. Need challenge code.