Output documents and SAP Scripts
We have an ever increasing problem with Sap Scripts and driver programs for Output Documents. There is a lot of hard coded stuff in the driver programs based on output type.
I
If nast-kschl = 'XX'
Do something
elseif nast-kschl = 'YY'
Do something else
Endif
This is causing a lot of maintainance problems. Logically, such conditional behavior is required. We need to execute different logic for different output types. Similarly there are hard coded conditions based on parameters.
for e.g.
select * from knvk where kunnr = hardcoded and abtnr = hardcoded
The problem is that all this custom hard coded logic is dispersed through out the program and it becomes difficult to maintain them.
I was wondering how folks on SDN have tackled this problem at your various clients.
S Kumar -
I think you may have misunderstood my original question.
Consider this scnerio:
If nast-kschl = 'XX'
var1 = A
var2 = B
elseif nast-kschl = 'YY'
var1 = C
var2 = D
Endif
This is a simplified version of what the problem is. There are many output types and many different business logic that are conditionally applied. This is creating havoc in my driver programs. Plus these are 10 year old driver programs. They have been maintained over and over again and numerous changes have taken place.
We would not want to face a similar issue for our next implemention and am wondering what the best solution to this problem would be. Going Smartforms? Would that help?
Similar Messages
-
How to do changes in Layouts setting and SAP scripts to meet requirment?
hi SD gurus,
Please explain me how create and work with Z output .
where and how we do changes in Layouts setting and SAP scripts to meet the user requirments.
pls forward func spec of Z output
points will be rewarded
thanx & regardsyou need ABAP skills to do this.
basically you need:
1) draw the layout on a piece of paper
2) define the fields you need and find out the corresponding SAP fields
3) check the document with the customer
4) give this specification to the developer
5) the developer will give you a program name and form name: place them in the message for the document.
Roberto -
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. -
Hi experts,
what are output types ? and how can we fetch the name of script program and SAP script layout using output type only.
For example if the out type is LD0010 the how can i get the program name and script name of this particular output type.Use TNAPR table. Enter your ouputtype in KSCHL.
Then you can see NACHA - Message transmission medium i.e., Printout / fax / etc
KAPPL - Application ie.e, sales / shipping,
PGNAM - Program name,
FONAM- Form name -
Userexits and sap scripts in PP module
Can anyone give me some examples of user exits and sap scripts in PP module? I need it for my resume. I appreciate your responses.
Dear,
Principle of Dual Control provides an application the option of validating certain process flows with a principle of multiple control.
Please refer this link,
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PPPDC/PPPDC.pdf
Regards,
R.Brahmankar -
How to find out existing Reports and sap scripts and smartforms ?
Dear Friends ,
How to find out existing Reports and sap scripts and smartforms ?
( e.g: how many existing reports and SAP scripts are available in MM or SD module , What is the procedure to find out ? )
Thanking you.
Regards,
Subash.scripts r stored in TNAPR TABLES
-
Steps to develop smartforms and sap scripts
hi experts,
I want to learn smartforms and sapscripts from the scratch step by step. i have gone through few threads, but iam not clear with the declarations.
thanks in advance
maayaMaaya,
Go thru these links...
SAPScripts
Link for SAP Scripts (step by step procedure)
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Subtotals - Check the link...
Re: Subtotal with Table Node in smartforms
Smarforms
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
SmartForms : some links
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
http://www.sap-img.com/smartforms/smart-001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sap-img.com/smartforms/smart-002.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
http://www.allsaplinks.com/smartform_example.html
http://www.sap-basis-abap.com/sapsf001.htm
Smart Form PDF Link
http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://sap.ionelburlacu.ro/sap0/sapsf001.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smart-001.htm
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
SRIPTS
http://wiki.ittoolbox.com/index.php/Sap_script#7.6.7.09Space_Compression
SCRIPT OUTPUT TO PDF
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
Reward if helpful,
Karthik -
How to generate a Spool based on output type in SAP Script
Hi all,
Is it possible to generate a spool based on output type for a SAP Script (without explicitly trigger in Tcode VF02 and selecting output type from there )
Actually a background job will be scheduled to process output types selected in VF01 / VF02
When output type is ZABC in the background a work flow is called pdf is generatedAny suggestions please
-
Regarding Creation of Output types for SAP SCRIPTS
Hi All,
I want to create new output types for my SAP Script.
What is the procedure for creating new <b>Z - Output Type</b>.
Like <b>ZA01 for Sales Order</b>.
What is the procedure can any body help me in this regard.
It is not to use <b>ZA01</b> in <b>NACE</b> & connect Print Program & Layout set against Form Entry.
It is for creation of <b>ZA01 Output</b> Type itself.
If anybody knows the procedure please post the steps.
Also please mention will there be any diffrence in creation from <b>Module to Module</b> (or) <b>Transaction (Vs) Transaction</b>. Just like <b>Sales Order (Vs) Purchase Order (Vs) Production Order</b>.
Thanks in advance.
Thanks & Regards,
Rayeez.hi Shaik,
Steps for output type:
Go to NACE Transaction
Select V1 - Sales.
Click Output type
In edit mode , click on new entries.
Give output type as ZA01 with some descp.
Then enter , then u need to give the Access seq. as 0010
Rest proprties are more and less similar to the BA00 standard output type in V1 only.
After that u need to give the processing routines.
In that u need to give the Program name
followed by Form routine name
In this way u can create the output from NACE tran.
Let me know if u want anything else.
Cheers
Rewrd points, if found helpful -
Need documents for sap scripts
hi friends,
I am fresh Abaper.I hav to study sap script . I need document which describes basic script coding procedure ie syntax.
Thank uhi
kavitha go through these links
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
regards
Nagesh.Paruchuri -
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 -
Dunning Notice print/email using both Smartform and SAP-Script
Hello Gurus,
I have developed the Customized SAP Sript (Copy of 150_DUNN_01) for Dunning NOtice to be send to Domestic Customer and
Cutomized Smartform (copy of F150_DUNN_SF) for Foreign Customer.
Now Issue is that when I assign the Customized script to SPRO setting and standrd setting for BTE '00001720' with function
module 'FI_PRINT_DUNNING_NOTICE', if I want to assign smartform to SPRO setting then I need to replace same FM with
'FI_PRINT_DUNNING_NOTICE_SMARTF'.
how it is possible to work with both SAP-Script and Smartforms for dunning Procedure.
Please gurus let me help for this solution...
Thanks in Advance,
Mahesh SachaniHello Gurus,
Please reply with any solution available with any...
Thanks,
Mahesh -
Report and SAP-SCRIPT & SCREEN PAINTER
Hi all ,
I need some help.
1)How to transport sap-script.
2) print program of sap script are client-dependent or client-independent.
3)Database tables ( on se11) are client-dependent or client-independent. ( is sy-mandt will make dependent or independent)
4) how to create select-option on screen painter or with module pool programming.
5)performance tuning for ABAP report.
points for all answers assured.
thanks.Ihave some notes on transporting sapscript for earlier version of SAP.
The steps may vary based on your version and Suppport PAckages levels.
In the future your version and platform detials will help in a quicker response.
Summary of sapscript EXPORT / IMPORT process.
Steps to export Layout Sets (sapscript)
Log on the Source system and client
This may have to be client 000 and then again in the client in which you do developement.
Note that sapscript is client dependent
SE38 and execute program RSTXR3TR
Tranport number: DS1K9#####
Mode field: EXPORT
File system: Server - radio button
The dataset name: /usr/sap/trans/data/DS1K9#####.layoutsets
CHECK the Display dataset contents checkbox
Execute
Steps to import Layout Sets (sapscript)
Log on the target system and client. This may have to be client 000 and then in the client in which you test, or ultimatly production.
SE38 and execute program RSTXR3TR
Tranport number: DS1K9#####
Mode field: IMPORT
The dataset name: /usr/sap/trans/data/DS1K9#####.layoutsets
CHECK the Display dataset contents checkbox
Execute
Note: when importing into Production, the export does not need to be performed.
Therefore only the import protion is required once the sapscript has been exported from Development. -
How to attach print program and sap script for F150 transaction
How to attach print program and Z sap script for F150 transaction
Hi,
you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
Kostas -
Email notification and SAP Script feature M0001
Hi All,
I have posted this questions in HCM forum but am posting again in ABAP forum since SAP script is related to ABAP development also. I will appreciate your help on this.
I am trying to send a notification to a distribution list whenever there is a specific Action (MASSN). I have two issues while trying to do so -
1 - I have defined the dynamic action and feature M0001 and a SAP script in SO10. I am getting the message in my inbox but with the variables from IT0000 only. In my sap script I have defined fields from IT0002/ IT0041 etc but those fields are coming as blank in my notification. Is this because I have configured dynamic action for IT0000 only. This is how my dynamic action looks like -
0000 06 1 P **SEND IF CHANGE IN MASSN -IT0000*****
0000 06 2 P T001P-MOLGA='10'
0000 06 4 P P0000-MASSN='UP'
0000 06 6 P P0000-MASSG='02'
0000 06 8 M M0001
Do I have to define these configurations for each and every infotype (that I have used in my SAP script) in table T588Z ?
2 - I want to include the position text instead of the Position no. in my notification. How can I do that? Since position text is stored in T582 table and not in P0000 or P0001.
Thank you for reading and I will appreciate your suggestions.
SanghamitraHi Kjetil,
Do you know how the problem was finally solved in your former company?
I already had a look to your post before, but for me the question is still opened. We have a corporate (non SAP) portal which users see by default when they open their browser and from where they can navigate to the SAP portal, in which we do not have single sign on.
So our users will definitely not login to the SAP Portal by themselves (nor to go to UWL, nor to display the homepage).
Maybe that an applet running on the corporate portal and doing RFC calls on the different back-ends would solve it, but I believe that might be quite a burden to develop, especially if we start talking to various non SAP systems as well. A better approach would probably be to query the portal db to look at what is in each user's UWL. But I have no idea of how the UWL data is structured in the portal and how it is updated (i.e. is the delta pull mechanism also running when a user is not logged in the portal?). I am also not sure whether there is an API in the portal to query this easily (i.e. similar to SAP_WAPI_COUT_WORKITEMS). Has anyone tried this approach before?
Cheers,
Patrick
Maybe you are looking for
-
Stacked canvas on one convas!!??
if i have two content canvases and one stacked canvas at the same window ,is it possible to display this stacked canvas at only one specific canvas at this window ??
-
Installing Itunes 7.0.1
We are trying to install a new 4G. We plug it in the computer and itunes says it needs to have "itunes 7.0.1" So we went and did that and it starts to install it but gets partway thru and stops. The dialogue box says: "Could not open key: HKEYLOCALMA
-
I downloaded the trail version of Aperture 2.0 today to use with my Olympus E-3. It looks like a great interface, but it does not support the RAW format of the new professional camera by Olympus. Is the program geared to Nikon and Canon users only? I
-
Why is this? can it be fixed i have the billing confirmation for the first months payment and everything.
-
I can't uninstall photoshop elements 8 from my computer.
- it says it's open in another program, but I've closed every other program - I've tried deleting the whole adobe folder and get the same error message - Any help? Adobe is absolutely no help, so I'm hoping someone here can help.