Printing SAPSCRIPT FORM vai RFC---URGENT
Hi All
I have a requirement where i am calling a Function moule ( present in destinataion system ) via RFC , from the source system.
Inside the Function module , i have requirement to call/submit a print program for a script form (Considering that the Form and Print program are in destination system).
Doing this, is there a way to have the SAPSCRIPT output ( ie a Spool) captured or copied in the source system?
Any pointers on the above would be of great help.
Thanks
Pankaj
Dear all,
I think I've got the answer (even though it is 3 years after question was posted).
Let me re-cap the problem:
1) A set of SAPscript form and print program (beginning with 'Z') for physical inventory document are developed
2) This set of SAPscript form and print program produce similar printout as that in T-code: MI03, or MI01 or MI02
3) The SAPscript form is copied from "INVENT" or "INVENT_VKBW" and the print program is copied from "RM07IDRU" or "RWWVINVB"
4) However, there is no output types available for configuration for user to print physical inventory document using this new set of SAPscript form and print program
Am I correct ?
The re-solution is: Maintain the output types entries (program, form) in table "T159N"
1) T-code: MI01 , MI02, MI04 will call T-code: MI21 when user selects to print physical inventory document
2) T-code: MI21 will call print program "RM07IDRU" (this is maintained in T-code SE93)
3) Program RM07IDRU" will call SAPscript "INVENT" or "INVENT_VKBW" (this is maintained in table "T159N")
Hence, if you develop new sets of SAPscript form and print program (by copying from "INVENT" or "INVENT_VKBW" / "RM07IDRU" or "RWWVINVB"), try table "T159N".
Simon
Similar Messages
-
Printing SapScript form in background
Hi.
How can i print a sapscript form when i launch its program via job????
Thanks in advanceHi Javier,
Did your print program has been designed such a way that the pop up will not appear asking for the print options if you want to run as a Job.I think if this is taken care, then the required details can be displayed in the spool. Give a try.
Hope this helps.
Thanks,
Srinivasa -
Printing sapscript form out of ABAP report
Hello,
I was wondering if there is a way to trigger the print output of a sapscript form out of an ABAP report? Maybe some kind of function module?
Thanks
AnneHi Anne,
The Only way is that..
1 .You need to pass the necesary data to see the output... (WRITE_FORM)
2. To pass the data you need to open the form... (OPEN_FORM)
3. After all you need to close the form... (CLOSE_FORM)
If you follow these three you can call you sap script from anywhere,, example you can write these in FM's (SE37).
From interface programs as well...
but you need open, write, close the forms to run a Sap script.
Thanks & regards,
Dileep .C -
Duplication when printing sapscript form
i have created a sapscript that is supposed to be printing a statement but when printing it prints the first record twice what could be the problem , the text elements are being generated from an internal table.
using the start and close form is not helping it still is printing the first record twice let me put the code and maybe you can see wat im doing wrongly
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZSECURITIES_REP'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = 'ZSECURITIES_REP '
LANGUAGE = 'EN '
STARTPAGE = ' '
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
CODEPAGE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
clear itab_print.
refresh itab_print.
LOOP AT itab INTO itab_print.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'PRINT_ITEMS'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
CODEPAGE = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
ENDIF. -
Hello,
is there a way to setup a printer that we can print sapscript form into a PDF file?
We don't want to go over the spool request and use RSTXPDFT4.
I have already setup a printer with device type PDF1, Host Spool Access Method F:Printing on Frontend Computer and Host Printer __Default. But for some reasons it doesn't work. We are running SAP Enterprise 470.
Any help?
Thanks
AnneYou must choose a FILE printer. See these notes:
[Note 576973 - Creating a file printer on a Windows PC|http://service.sap.com/sap/support/notes/576973]: steps to add a Windows (if it's Vista, see note 1164132) printer of type Generic/Text only, and to create an output device in SAP to print to this printer. It does not explain that we may just change the port of an existing printer.
[Note 1164132 - Front-end printing on Windows printer with FILE port|http://service.sap.com/sap/support/notes/1164132]: note 576973 applied to Windows XP and before, but it doesn't work anymore on Windows VISTA because the dialog box to enter the file name is no more displayed. A change in SAPGUI 7.10 was made (and it works only with access method G) to display a SAP dialog box to enter file name. -
Physical Inventory SAPscript form printing.
Hi Friends,
we have developed a SApscript form and print program for physical inventory documnet . and we r using z transaction code to run this..
now the requiremnt is . the same form and print program need to be called when they run the transactions MI03, or MI01 or MI02.
it seems to be there are no Output types related to physical inventory.
Could any one of you guide me how to do assign this custom form and program to these transactions.
Its bit urgent.
thanks in advance.
Jeyaseelan.GDear all,
I think I've got the answer (even though it is 3 years after question was posted).
Let me re-cap the problem:
1) A set of SAPscript form and print program (beginning with 'Z') for physical inventory document are developed
2) This set of SAPscript form and print program produce similar printout as that in T-code: MI03, or MI01 or MI02
3) The SAPscript form is copied from "INVENT" or "INVENT_VKBW" and the print program is copied from "RM07IDRU" or "RWWVINVB"
4) However, there is no output types available for configuration for user to print physical inventory document using this new set of SAPscript form and print program
Am I correct ?
The re-solution is: Maintain the output types entries (program, form) in table "T159N"
1) T-code: MI01 , MI02, MI04 will call T-code: MI21 when user selects to print physical inventory document
2) T-code: MI21 will call print program "RM07IDRU" (this is maintained in T-code SE93)
3) Program RM07IDRU" will call SAPscript "INVENT" or "INVENT_VKBW" (this is maintained in table "T159N")
Hence, if you develop new sets of SAPscript form and print program (by copying from "INVENT" or "INVENT_VKBW" / "RM07IDRU" or "RWWVINVB"), try table "T159N".
Simon -
Duplicate printing In SAPScript form
In SAPScript form, is it possible to print the same page twice in one go without creating the same window twice?
There is a specific requirement that we need to print the same content twice.
Thanks for your kind help.
AshishIn the OPEN_Form function module you can pass the no. of copies OPTIONS-TDCOPIES.
-
Hi Experts,
I have a sapscript form being used in transaction LT31. When LT31 printing is executed, the form is always being printed twice. Where should I start investigating on this?
Thanks in advance!Check the variant, I guess in variant you will have an options...
Regards,
SaiRam -
Priting same SAPscript form on different printer: different results
Hi,
my client has different printer models and is claiming now that the forms appear different.
Do I have to create a SAPscript form for each printer type?
Is there a way to use the same form for all printer models?
Would we have the same problem using SMARTFORM?
Thanks for your help in advance!!!
thomasHi.
You should not have one SAPscript for each printer type. Thats not really a good idea. I would first of all try to do some tests with different device types on your output devices.
I don't think converting to SMARTFORM is the way to go if you don't feel like you have to. It is much easier to experiment with the device types.
BR
Niklas -
Print on the last page of a Sapscript form
Hi,
Is it possible (and how) to print something (a filed of an internal table) only to the last page of a sapscript form?
ThanksHi
if you want to print something at the end of a page....
You can write it as this...
in the main window...
in the data element write it...
/E END_DATA
/: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&.
&W_VALUE&.
/: ENDIF.
SAPSCRIPT-FORMPAGES variable is a system variable which stores the total pages.
PAGE variable stores the current variable accordingly it will check for last page and print it.
Now call it in the driver program .
Regards. -
SAPScript: How to print mutiful forms in one program?
Dears,
I want to print invoice in my program, And one invoice number should print one form.
My question is : if there is a internal table contains 10 different invoice number, and I want to print 10
forms. Is that means, I should use FM 'OPEN_FORM' 10 times?
If do, I would have to fill the popup dialogue window 10 times.
Anybody who have good ideas about this problem? Thank a lot.
Sincerely yours,
JulieI suppose you want to print several sapscripts in one spool
In that case you need to use START_FORM END_FORM
It would be something like this
OPEN_FORM
Loop at invoices.
START_FORM
ENDFORM
endloop.
CLOSE_FORM -
Printing Street4 Street5 in SAPScript form BA00
Hello All,
I am trying to print additional lines of street address (i.e. Street4 and Street5) in the sales order confirmation SAPScript form (BA00) output. I see that the structure VBDKA is being used to display the Ship-to-party address details. However, it does not have the additional street fields in it.
How can I print these additional street lines?
Any help will be greatly appreciated.
Thanks,
RugmaniIn the INFO1 page of the SAPScript form I inserted the following code:
/: IF &VBDKA-LAND1_WE& NE &SPACE&.
/* * Ship-To Address (not identical to Sold-To)
/: ADDRESS DELIVERY PARAGRAPH AS
/: ADDRESSNUMBER &VBDKA-ADRNR&
/: ENDADDRESS
/: ELSE.
/* * Output Partner (Sold-To)
/: ADDRESS PARAGRAPH AS
/: TITLE &VBDKA-ANRED&
/: NAME &VBDKA-NAME1&, &VBDKA-NAME2&, &VBDKA-NAME3&, &VBDKA-NAME4&
/: STREET &VBDKA-STRAS&
/: POBOX &VBDKA-PFACH& CODE &VBDKA-PSTL2&
/: CITY &VBDKA-ORT01&, &VBDKA-ORT02&
/: POSTCODE &VBDKA-PSTLZ&
/: COUNTRY &VBDKA-LAND1&
/: REGION &VBDKA-REGIO&
/: FROMCOUNTRY &VBDKA-SLAND&
/: ENDADDRESS
/: ENDIF.
However, I do not see the additional street lines filled in the form output.
Is there something wrong with my code? I think VBDKA structure does not accomodate the additional street lines. Is there any other structure that I can use? Do I have to change anything in the print program?
Thanks,
Rugmani -
Hi. I am trying to create SAPScript Form to print checks and need your help.
I am very new to the SAPscript, so I have one general question and one specific question.
1. Is there a really good tutorial for creating a check form?
2. Currently, AP in our company uses two checks per legal paper.
Do you know how/what format I need to set up page format to print two checks at a time in one paper?
Thank you in advance.
JohnThank you, but I am little confused.
Let me try to explain little more detail of my need.
We have legal size paper containing two blank checks and space to write invoice items below each check.
If open item has one check to write, just print one check.
If invoice items goes over length of space allowed, void next check and continue with invoice items.
If it needs to print two or more checks,
print first check, print invoice items, print second check (on same legal paper) and invoice items.
Go to next legal size paper and print third check, etc...
How do I set up to print second check on same paper below contining to next paper?
What page format do I need to use?
I hope this clarifies my need.
Thanks.
John -
Printing SAPSCRIPT french form
Hi
I have sapscript in all languages..
do i need to logon to sap(logon language 'FR') to print the form in french?
Could anyone please tell?
because if i print logon language as EN the FR text is not printing instead everything is in english.
if the logon language is 'FR', it works fine.
Please let m eknow.
Thanks,Hi Renuka,
It totally dependens upon how your sapscript language is called.
In sales documents it depends upon land of customer.
In FI documents its company code language.
There are diffrent possiblities.
Depending upon the application you have to check which language is called.
If call of script is on system language then it will take as logon language.
Hope its clear.
Thanks
Dhiraj. -
Printout is distinct font in different printer but same SAPscript form
Dear experts,
I have one SAPscript form ,Pintout in pinter HP2200 and HP4100, but printout is distinct font.
Could you help me?
Thanks and regards,
collysunHi,
just ask your basis people to check whether the page format has been attached to the second printer's device type. the page format should be attached to the printer. else font differences occur.
Kumar
Maybe you are looking for
-
How to calculate a value in sap script?
Hi friends i have to do addition and then display the added value in grandtotal like total amount + late fee = grand total i have to do this in sap script can anyone tell me the procedure where to declare wheather in abap aditor if yes how?
-
I recently went over to BT Infinity and the engineer who fitted it was unhappy with the HH3 with a very low mbps which he said was lower than my old BT Broadband. He fitted a type 2 Home Hub (type B with a red socket for an Infinity Broadband plug)
-
SAP CRM to ECC - SSO Configuration - Logon Language Setup
Hi All, I am a BASIS consultant currently handling one CRM project. I need a help in configuring SSO between CRM and ECC. Now SSO is not configured, so When I click on the External Link created in CRM calling an ECC transaction, it requests for Clien
-
I've created a form in Adobe LiveCycle Designer 8 and can enter Form Properties from there but I need to be able to add Document Properties to post it on our website for accessibility. If I open it in Adobe Professional 8 where I add the properties t
-
Hi Im planning to create a Text Variable for a characteristic . How can i create the Text Variable . Please let me know the steps. i ll assing the points kumar