Sap script program without Nast
Hi Friends,
can we right a sap script program without taking nast table into consideration???
Thanks and Best Regards.
Kusum.
Hi,
Yes you can create an ABAP report with normal selection screen and output will be a sap script.
Similar Messages
-
Calling SAP script program in BAPI and want to display in html format
Dear All,
I am writing bapi and calling sap script program in it.
I want output in html format pl suggest me
same coding is working for report giving error in sapscript only.
types: begin of tt_html,
html type w3html,
end of tt_html.
data: list_tab type standard table of abaplist.
SELTAB-SELNAME = 'S_INVNO'.
SELTAB-KIND = 'S'.
SELTAB-SIGN = 'I'.
SELTAB-OPTION = 'EQ'.
SELTAB-LOW = INVOICE_NUM1.
SELTAB-HIGH = INVOICE_NUM2.
APPEND SELTAB.
submit ZSDRDINVPNBRPT with selection-table seltab
exporting list to memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WRITE_LIST'
EXPORTING
WRITE_ONLY = 'X'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
EMPTY_LIST = 1
OTHERS = 2.
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 'WWW_LIST_TO_HTML'
TABLES
HTML = MTAB_REPORT_HTML
EXCEPTIONS
OTHERS = 1.
LOOP AT MTAB_REPORT_HTML.
ENDLOOP.For displaying output in html format,
u can either use BSP ( Business Server Pages)
or Webdynpro.
Reward if helpful. -
How to change a SAP script output without changing Print Program
Hi,
I want to change output of standard PO report printing object. I have to change the ZSAPSCRIPT but I have to keep the print program intact. please give me ideas.Hi for that you have to do following.
1. Create a ZPROGRAM
2. Write a Perform in your SAP Script.
3. Write Form inside it your ZPROGRAM.
Hope this will help you.
<i><b>Reward points for helpful ans.</b></i> -
Hello,
I want to write a patch of code in SAP SCript which will fetch multiple lines of data(no of lines fetch is unknown). How can I do it? I tried Perform Endperform but it had limit to the varibales it can send back. I don't know the line items(values) it will return.
i cannot modify print program? How can I do it?
Thanks,
Amol..If you do not want to modify the standard program and achive to display you can use sub-routine calls... firstly, you should identify the element that is displaying the line items and use your sub-routine call inside that element and display all the required fields.
Note: you there is no element which call for line items, I guess there is no other alternative then modifying the driver program.
Regards,
SaiRam -
Sap Script Programming.
Hi Frnd's
Can anybody send me the link to learn abt SAP Script.
thanks in advance
suganya.dHi,
check these links,
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
Regards,
Wasim Ahmed -
How the Number of Document to be print is pass to SAP script program
Hi,
We are using std. program and form for printing of Invoices , sales order PO etc. as in case while taking print out of biiling document after entring proper message type to the billing doucment we take print out , on VF02 screen we have to give just accounting document number then from top menu Billing document issued to output then automatically the document get printed for the h no. we have place on selection screen of VF02 I want to know How this number which we have enter on vf02 screen is pass to the program in which block sililarly in case of PO print with ME9F we give the PO number then we select the check BOX then when we click on print that Po is getting printed so by which field that PO number are pass to print program acutally I want to make a Sapscript print program and from and i want to assign that to std. output type.
regards,
zafarHi,
Thanks for your reply I have check the print program of and this include program INCLUDE RVADTABL. is common for most of the print profgrams this is declaration of nast and other tables in further processing is done whateverdat is ther is *NAST structure , can you plz give the e.g of only first part like How to pass the value into this so that remaning all coding I can do ref. to the number which i will get in NAST just wan to know How to pass the PO number or SO number to NAST for further processing.
regards,
zafar -
Hi!
If I have the name of a SAPScript , is it possible to find out the name of the program for it. I had to make chnages in the script for cnaging the spelling of a word there and change the date format form &rgup_bldat& to &rghu_zaldat&, which I did it in the script layout change. Now do i have to make the some changes in the program for it or not? If yes could someone help me in telling how to locate the program for the SAPscript.
I am preety new to script use.
ThanksHi Aarav,
This applies to all modules not only FI.
Se71-->Form name>display-->Form->Cjeck->texts>Symbol check---->It will display all programs where this form is being used.
Hope it helps you..
Regards,
KK -
Error with small sap script program
REPORT ZFORM1 .
TABLES : ZGTABLE.
types:begin of warea,
trackid type zgtable-trackid,
artist type zgtable-artist,
end of warea.
data:itable like zgtable occurs 0 with header line.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
* DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZFORM1'
LANGUAGE = SY-LANGU
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* 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 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
* 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.
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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Inside sapscript:
/E MAIN
P1 <B> Track id : </> &ITABLE-TRACKID&
P1 <B> Artist : </> &ITABLE-ARTIST&
output:
Trackid : 00000000000
Artist :
Why the output is like that? I expect the output to be first record of the table.Please help me.Where is loop ( Internal table ),Just see the bold code
REPORT ZFORM1 .
TABLES : ZGTABLE.
<b>data : begin of itable occurs 0,
trackid type zgtable-trackid,
artist type zgtable-artist,
end of itable .</b>
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZFORM1'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
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.
<b>select track id artist from zgtable into table itable.
if sy-subrc ne 0.
*message
endif.
loop at itable .
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
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.
clear itable.
endif.</b>
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks
Seshu -
Missing fields in the output while using SAP SCRIPT
Hi,
I am working on an issue where we are using F110 to print some checks, and for this we have created a custom sap script and we are using a std driver program RFFOUS_C, we have also maintianed a custom subroutine pool ZRFFOUS which will retrieve the missing data for the sap script which was not there in the std. program. Now we have applied a SP to our system and since then we are having a problem...when we are printing the chechks its missing some fields.
Surpisingly, it is happening for all scripts like Dunning, invoice......
These scripts are working good in production which is not applied patches.
I have tried in all ways, did debug, data is there in tables and scripts are exactly same as in production.
Could you please share any ideas regarding this? What would be the effect of patches?
Thanks
ShaHi ,
I think u r printing the Check through the Tr Code F110.
In that program u r using the Standard Driver Program RFFOUS_C and u create a New Sap script.
and also u also mantained the custom subroutine pool ZRFFOUS . when ru giving printing u are not able to print some field.
In this case when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran * RFFORI01---- check ,
in this program it is calling the Standard Form (F110PRENUM_CHCK) i--e t042e-zforn .as shown in the below and it is calling the function module 'OPEN_FORM'._
Please copy the form asZF110_PRENUM_CHCK and and do the changes in that form . and we need to maintained the Form as Company code level -- and it will shown this Table T042E (Company Code-Specific Specifications for Payment Methods)
Please go to Transaction Code FBZP and U can maitained the New Sap Script Form Company Code Level.
one thing while u calling your new subroutine pool ZRFFOUS Please call this subroutine in your Sap Script form then only u can see all values in your Check. and Actvate the Sap script .
Like U can call your new subroutine ZRFFOUS in your New Sap script Program.
/E CHECK
/: PERFORM XXXXXXX IN PROGRAM XXXXXX''
/: PERFORM CHECK_NAME IN PROGRAM ZRFFOUS
/: USING &XXXXXXX&
/: CHANGING &XXXXXX&
/: ENDPERFORM
In the subroutine pool ZRFFOUS u have to call as
FORM CHECK_NAME TABLES t_data_in STRUCTURE itcsy
t_data_out STRUCTURE itcsy.
xxxxx
xxxxx
xxxxx
ENDFORM.
In this case when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran * RFFORI01---- check ,
in this program it is calling the Standard Form (F110_PRENUM_CHCK) i--e t042e-zforn .
open check form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = t042e-zforn
device = 'PRINTER'
language = t001-spras
options = itcpo
dialog = space
EXCEPTIONS
form = 1.
IF sy-subrc EQ 1. "abend:
IF sy-batch EQ space. "form is not active
MESSAGE a069 WITH t042e-zforn.
ELSE.
MESSAGE s069 WITH t042e-zforn.
MESSAGE s094.
STOP.
ENDIF.
ENDIF.
I thing it will help u to solve this issue.
Thanks.
Gagan -
SAP Script O/P is not comming
Hi,
when i make a t-code for my SAP-script Program it is not comming properly in print form.
But when i run my print program in se38 it is comming proper out put.
Plz help me what is the cause behind this isue.
Regards,
Sunil sahooHi Sunil,
I have faced the same problem.
1)First Check initial screen and specify appropriate start object --> select 2nd radio button (For Reports)
2) On Seciond screen :-
Please check all the fields
Transaction text --> Give the specific text
Program --> Give the report name
Screen number --> 1000 (Keep it standard)
Authorization object --> can be empty.
3) GUI Support --> Tick all the check box.
I hope this resolve your issue.
Thanks & Regards,
Lokesh. -
SAP Script from scratch.
Hi friends.
i want to develop sap script from scratch.
please any one have good document for this, then please send me on <b>[email protected]</b>
thanks in advance.Hi,
Please have a look at the links,
Sap Script Programming.
SAP Scripts
Regards,
Hema.
Reward points if it is useful. -
SAP Script transfering between clients
How to transfer a SAP script created in a clinet to a different client.
Thank you,
-Naveen.How to change development class of a SAPscript ?
Use program RSWBO052
R3TR DTEL Data Element
Next balnk line
Click FORM = Z_script_name
f8 9 Execute -> double click and change the class
FYI
http://www.sapgenie.com/abap/tips_and_tricks.htm#How_to_change_development_class_of_a_SAPscript
A tip for you , as youre working on SAP scripts ..Go to se38->F4-> package = STXD and program type = 1. Youll find all SAP scripts programs; )
Thanks
Saquib -
Customer Statement using SAP Script and Standard print program RFKORD10
Using sap script and standard print program RFKORD10 I need to create a customer statement where the main window will be as follows
Invoice # InvoiceDate CustomerPO Debit Amt Credit Amt Total
6 7 8 9 10 11
6 7 8 9 10 11
Totals 12 13 14
Where company code BKORM-KUKRS
Invoice BSID-BELNR
Invoice date BSID-BLDAT
Customer PO VBKD-BSTKD
For each document number selected there will be one to many records in VBRP. For each invoice item in VBRP:
u2022 Select BSTKD from VBKD where
o VBELN = VBRP-VGBEL and
o POSNR = VBRP-VGPOS
u2022 If no hits then select BSTKD from VBKD where
o VBELN = VBRP-VGBEL
If there is more than one PO per invoice then list them in the Customer PO field without repeating the other fields.PO shouldnu2019t come more than once per invoice.
Debit Amt if BSEG-SHKZG = S then WRBTR ELSE 0
Credit Amt if BSEG-SHKZG = H then WRBTR ELSE 0
Total Debit Amt u2013 Credit Amt
Totals Subtotals
It will be of great help if some one can help me with the script and the alterations required in standard print program RFKORD10
Points will b rewarded for sure.
Thanks.Hi Suganya,
The custom form is getting displayed properly. But the requirement is to have it as an editable PDF. So the functional team is working on configuring the settings of PDF forms with customers email address.
But for right now, i customized the standard form F140_ACC_STAT_01 and standard print program RFKORD10_PDF and did the configuration. It is getting displayed (I tested only with the transaction FBL5N - customer open line items..)
Please let me know any further details on this.
Poornima -
Search print program and sap script
hii , how can i find trigring print program and sap script for a particular purchase order.
regards Aditya
Edited by: aditya shrivastaba on Apr 14, 2008 9:59 AMHey,
First go with Me22 or 23 with po that you had, and then check with output type for that in the transaction. After that go to TNAPR table and check the corresponding form and print program.
Or else, go with NAST table in that put PO num in 123456 and put in OBJKY field in nast table. It will give you the output type of it, so that u can find the print program and lay out in TNAPR
Many thanks,
Raghu. -
Passing data to SAP script from print program-VF03
Hi All,
I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
Regards,
Ravi
Maybe you are looking for
-
No SSL VPN tunnel from AnyConnect to IOS
Dear all Due to the annoying WWAN issues with the old Cisco VPN client (IPsec) I am trying to establish remote access to a LAN behind a Cisco 1803 using Anyconnect and SSL VPN. But I simply cannot make it work. I have a Cisco 1803 running IOS Version
-
New to Premiere Pro- Errors rendering, exporting, viewing video
I'm very new to Premiere Pro (and my macbook) but have recently got into video editing for my work and am having some issues on my second project. The first project (just a 1 minute video for YouTube) worked fine with no issues. After searching the f
-
I am using WAS and try get ma md bean to run. I configured the QueueConnectionFactory as followed via AAT and via the Admin console, so the server-cfg entry looks like: <factories xmi:type="resources.jms.internalmessaging:WASQueueConnectionFactory" x
-
Hi Is there a time limit for full optimize when running it from BPC Admin? I have tried to do a full optimize two times and it ends after 1 hour both times with the error messege: "Thread was being aborted" Do any one know what the problem can be and
-
Aperture support for unsupported raw formats
I was doing some tests with Aperture to see if it could fit my workflow. My concern was support of old files from a Nikon Coolpix 5400, raw (thanks to firmware update at the time) as well as a recent Nikon DSLR. No problem with the DSLR. 5400 was not