Reg : modification in sap script driver prog
Hi folks,
need some help regarding sap scripts
i havecopied the standard layout medruck to my layout
and made some changes.
now i have to modify the driver program
in the tnapr table the driver prog for medruck is
given as sapfm06p
but when i see the source code for that in the
editor
evrthing is like included functions there
in the incuded there is a form named with "entry_neu"
which has some code calling few functions
but...
there is no openform,no write form etc.
where should i give the name of the form name that i have
i have developed(changes made to the copy of the medruck)
where should i make the changes in the prog
how about going at modifying the driver program
do i have to assign the o/p type using the tcode nace.
please give me the steps
please treat it as very urgent
expecting a promt responses from u
thanks & regards,
annamreddy
We modified the driver program because there was a requirement to add stuff that was not available in the standard driver program. Here is what we did.
First, Copied the SAPFM06P program to SAPFZM06P. Did not copy all of the includes. Copied only the FM06PE02 include program to ZFM06PE02.
Second, in the include ZFM06PE02, there is a form call ENTRY_NEU, this is the entry point to print the form, notice that there is a function module in this form called ME_PRINT_PO. This is the function module that will print the PO. Eventually, you will want to call a Z version of that funciton module.
Third, copy the entire funtion group MEDRUCK into ZMEDRUCK. This is the function group which has the function module ME_PRINT_PO. Don't copy the includes into Z versions. You don't need to modify all of them. Only copy them when needed. Save and Activate.
Finally, go back to that include program ZFM06PE02, now make the call to ME_PRINT_PO to the Z version, in my case it is ZME_PRINT_PO. Save and activate.
Make sure that you change your configuration in SPRO to use the SAPFZM06P program instead of the standard. Now your form should be printing from the custom driver program. Modify away!!!!
Please don't forget to award points for helpful answers. Thanks.
Regards,
Rich Heilman
Similar Messages
-
I CANNOT RUN ANY OF THE CODING ...........
hi
this is an ex.. but u definitely need to go through the links
REPORT ZPSAPSCRIPT.
TABLES : EKKO,
EKPO,
KNA1,
USR01,
MARA,
MAKT.
DATA : BEGIN OF ZOPTION.
INCLUDE STRUCTURE ITCPO.
DATA : END OF ZOPTION.
PARAMETERS: P_EBELN LIKE EKKO-EBELN,
P_EBELP LIKE EKPO-EBELP.
CLEAR EKPO.
SELECT SINGLE * FROM EKPO
WHERE EBELN = P_EBELN AND
EBELP = P_EBELP.
CLEAR KNA1.
SELECT SINGLE NAME1 FROM KNA1
INTO KNA1-NAME1
WHERE KUNNR = EKPO-KUNNR.
CLEAR MAKT.
SELECT SINGLE MAKTX FROM MAKT
INTO MAKT-MAKTX
WHERE MATNR = EKPO-MATNR AND
SPRAS = SY-LANGU.
CLEAR USR01.
SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
ZOPTION-TDDEST = USR01-SPLD. "Output device (printer)
ZOPTION-TDIMMED = 'X'. "Print immediately
ZOPTION-TDDELETE = 'X'. "Delete after printing
ZOPTION-TDPROGRAM = 'ZPQRPRNT'. "Program Name
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX = ' '
ARCHIVE_PARAMS = ' '
DEVICE = 'PRINTER'
DIALOG = ' '
FORM = 'Z_TESTSCRIPT'
LANGUAGE = SY-LANGU
OPTIONS = ZOPTION
IMPORTING
LANGUAGE = SY-LANGU
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEADER'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'HEADER'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'FOOTER'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
OTHERS = 2.
also you can check at
http://help.sap.com/saphelp_47x200/helpdata/en/d6/0dc169494511d182b70000e829fbfe/frameset.htm
http://www.sapmaterial.com/sap_scripts.html
regards
asha -
Hi All,
I am creating one report form using SAP Script, it is a replacement of standard SAP Script and which uses standard driver program. I am getting one dump while running SAP Script, it shows like "variable with name 'XXX' has not been used in so and so window".
In that window there is a code block like,
/: IF XXX == 'yes'
/: ENDIF
As I dont want this block I have commented this like,
/* IF XXX == 'yes'
/* ENDIF
Please let me know how to overcome this short-dump and provide solution why such dump is comming?
<<removed by moderator>>
Edited by: kishan P on Sep 13, 2010 4:19 PMHi,
This is one of the problem of Standard SAP Script driver program, we can over come easily, we no need to comment anything rather do follow the code you can easily solve your issue, I also face the same issue previously.
your code is,
/: IF XXX = 'Yes'
/: ENDIF
like this means, then change the code like this,
/: IF 1 = 2
/: IF XXX = 'Yes'
/: ENDIF
/: ENDIF
here, you didnt write any comment, also the code will never execute.
Why we are doing this means, driver program expects particular variable has to be used in particular window, but it never expects that variable has to be executed. By using this code you can use the variable also it will never be executed.
Hope it will be helpful. If you find any other solution please let me know, Thank you:) -
Hi,
I am working on dunning. i need to find the driver program of the script. i went to insert->symbol->program symbol..theres no program..i went to TNAPR table and gave the form name..i get no entries...i went to NACE..but am not sure of the application area and the output type..can pls helpHi,
Plz check the following link :
PLS SEND ME A SAP SCRIPT DRIVER PROGRAM.........
Hope it will help you.
Thanks & Regards,
Sarita Singh Rathour -
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
Go to NACE Transaction.
Select application for ex: if sales V1.
Click on output types.
Select the output type for ex : BA00
Double click on Processing routines.
There you can find the Driver Program name and Script/smart form name.
Reward if useful.
Thanks,
Raju -
Driver program for the Dunning letter SAP Script
Hello All,
Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
Thanks and Regards,
SNK.Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
But notice
- PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
- During following upgrades of your system you will have to manage a copy of standard.
Regards,
Raymond -
SAP Script & SMARTFORM import - Prog. RSTXSCRP????
Hi Experts,
We hv my_SAP_Script in DEV system of FarmSeeds box.................now, I need to get(import/copy) in the same my_SAP_Script into DEV system of FarmChemicals box,
So, in this perspective am looking the prog. of RSTXSCRP............but, it looks like its does not meets my requiremet,
So, let me know that,
1- If it meets my requirement, pls.let me know How to do it, I mean, Is I need to IMPORT to a .txt file on my local desktop?
2 - How to get it from DEV of one box to DEV of another box?
3 - The same case for SAMRTFORM also!
replies appreciated
thanq
Edited by: SAP ABAPer on Nov 6, 2008 7:05 PM
Moved to correct forum by moderators
Edited by: Matt on Nov 6, 2008 8:12 PMthanq.
for SMARTFORMS also, I did the same, so, looks like its working.
but, clarify,
1 - shuld i check the check box of BINARY FORMAT?
2 - In the Target system, system is forcing me to give/specify the SAME NAME, wht we hv in SOURCE system...........say, my_sap_script??? so, is it so? or Can I give any name? bcoz, here at thisa client need to follow naming conventions?
2 - looks like, i can NOT RENAME the sap script? is it correct or is it possible to RENAME the script, if so, how?
3- pls. clarify ur statement below,
" You will have to use a transport for the SmartForms anyway"
thaq
Edited by: SAP ABAPer on Nov 6, 2008 8:08 PM -
Driver prog for tcode vf01 r script mr_print
hi friends,
i have checked out driver prog in tnapr for vf01 / mr_print
but it z giving a sub routine pool prog RM08NAST.
i havwe migrated dat mr_print script to smart form but it z giving errors at the declartions level.
so i need to find out how they declared it in the stad driver prog of mr_print
pleaase let me know the driver prog for mr_print r vf01.print program is RLB_INVOICE
-
Hi experts,
I have one problemin bseg-sgtxt field. i develop sap script for payment print prog, In my script my field is bseg-sgtxt(item text). and this field lenght is 50 char. i want more then 50 char through this field in my script. for that i use long text button... this long text stored in EENO_DYNP and field name is ZEILE , but it is a structure...so my question is
1) How can i retrive this long text field in my script
2) Can u give me example with this coding..
3) How can i concate bseg-sgtxt with EENO_DYNP-ZEILE
I need code example for that....
Pl help me its urgent
zenihi,
the long text of a document are stored into the standard text table and u can read it with the function READ_TEXT.
call this function in this way
>CONCATENATE bseg-bukrs bseg-belnr bseg-buzei INTO name.
>CALL FUNCTION 'READ_TEXT'
> EXPORTING
> id = '0001'
> language = sy-langu
> name = name
> object = 'DOC_ITEM' " identified FI document
> TABLES
> lines = t_line
> EXCEPTIONS
> id = 1
> language = 2
> name = 3
> not_found = 4
> object = 5
> reference_check = 6
> wrong_access_to_archive = 7
> OTHERS = 8.
the id of the text you can find in SPRO transaction under
Financial accounting->Financial accounting Global Settings ->Document->line Item-> Define Text Identifications for Line Items
here you can find all ID of the standard text that are configurated in your system.
now you can concatenate BSEG-SGTXT with the standard text of the document item .
bye
Marco -
Reg: SAP Scripts abap program
Hi experts,
i have requirement in QM report i need to show some additional fields in print out ,
here i know the form name but i don't no from which program in SAP Script form fetching values can any one suggest how to find out programs for SAP script form.
i know inside of SAP script we can c perform action but in my case there is no perform action written in script,
they are directly using call function open form in pgm .
Regards
Srinivasan.R
Moderator Message: Please search for available information before posting.
Edited by: kishan P on Jun 3, 2011 11:41 AMHi,
Your question is not very clear....
but if you want to Spell out a Number (Amount in your case) you can use the function Module
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = (Amount to be printed)
CURRENCY = ' '
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = (Amount in words)
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
Reward if useful !!
Regards,
Gaurav -
HI, how can we put the blanklines in sap-script & if i want to start my text element from 15 row how can we program.
Hai,
<b>Create a Paragraph format so that SPACE BEFORE = 15 lines.
Then At the very Beginning,In one line write:
P1 At the Script editor.</b>
And then Directly write your Text_Element and what the needed commands.
Then !5 lines will be empty.
Hope this helps you.
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi -
helllo i m working on sap scripts in creating a cheque in which i have to two fields in which one is amt field in words and the another field the same amt in numericals ,how can i get the values from screens to this lay out that is in selection screen i give custid,name and other details by that name in cheque layout will be getting but the mt in numerical and in words how can we get at the same tinme,help me in this criteria
Hi,
Your question is not very clear....
but if you want to Spell out a Number (Amount in your case) you can use the function Module
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = (Amount to be printed)
CURRENCY = ' '
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = (Amount in words)
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
Reward if useful !!
Regards,
Gaurav -
Reg : trade mark symbol(TM) in SAP Script output
Hi gurus,
i am using SAP Script to print a material description , when i tried to run the sript in debugging mode it is showing as trandemark symbol as(TM) but in output ( i.e in printing ) i am getting this value as # . for example if i material description is xxx(TM) , then in debugging it is showing as xxx(TM) , but while printing it is showing the value as xxx(#).how to overcome this . please help me on this.
Thanks and regards,
Rajeshwar.Hi
[Double Byte Characters in SAP |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00adf4da-76f1-2910-43aa-81ad2a67332c]
Regards,
Sravanthi -
EXPERTS PLZ HELP ME IN SAP SCRIPT URGENT
Hi experts
plz help me
i m very new in sap scripts
i have a script WESCHEINVERS1 and the driver prog is SAPM07DR
i ill have to copy this script and have to add two more feild in the text element W1LGMAT
fields are :
CAWNT-ATWTB
EKPO-REVLV
now wat i think i cannot make changes to standard driver prog so it wud be better to call a subroutine 4 it
so plz guide me how i ill have to fetch data nd pass to the script
plz write the code if possible 4 u
FYI:
MSEG : Document Segment Material
MANDT Client
MBLNR Number of material Document
MJAHR Material Document Year
ZEILE Item in Material Document
MATNR Material Number
LIFNR Account number or vendor
EBELN Purchase order number
EBELP Item number of PO
EKPO : Purchasing document item
MANDT Client
EBELN Purchase order number
EBELP Item number of PO
MATNR Material Number
REVLV Revision Level
LFA1 : Vendor Master (General section)
MANDT Client
LIFNR Account number of vendor or creditor MSEG-LIFNR
SPRAS Language key
AUSP : Characteristic Values
MANDT Client
OBJEK Key of object to be classified MSEG-MATNR
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter
ATWRT Characteristic Value
CAWNT : Value texts
MANDT Client
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter AUSP-ATZHL
SPRAS Language Key LFA1-SPRAS
ATWTB Characteristic Value Description
thanks in advanceRefer the links to know about calling subroutines ins cript -
subroutine in script
How to call a subroutine in a script ?
EXTERNAL SUBROUTINE IN SAP SCRIPT
Regards,
Amit
Reward all helpful replies. -
Sap Script - numbers to words without function module
Moderator message - please use a meaningful subject in future. I've changed it for you this time. Also, moved to the correct forum
Hi Friends,
In SAP Script how to convert numbers into words with out using the function module in the driver program.
examplae 21 kg as twenty one kg.
Please help me to solve this problem.
Thanks in advance.
Gayathri S
Edited by: Matt on Nov 5, 2008 9:15 AMHi,
In the SAP Script, you can call the perform like below:
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
You can create a separate include or use an existing include related to your script and create the above <form> in that <prog>.
The syntax for creating the form in the include is as below:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
ENDFORM.
Example:
In your script,
/: PERFORM GET_BARCODE IN PROGRAM ABCDE
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
And in the report ABCDE, create the form like this:
REPORT ABCDE.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY 'PAGE'.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'NEXTPAGE'.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY 'BARCODE'.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = '|'. "First page
ELSE.
OUT_PAR-VALUE = '||'. "Next page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Hope this helps.
Regards,
Suganya
Maybe you are looking for
-
Macbook Pro unable to get pass the Log in Screen.
Hey hope someone can help. Okay so last night I was using Windows, I shut down, then a few hours later I switched it on to go onto my Mac, but it took forever, I left it though and eventually I got to the log in screen, I entered my password and it w
-
Itunes radio is not available in canada
when is itunes radio going to be available in Canada? Still not available as of Feb. 25th.
-
Dump when pressing F1 on an ITS Application
While accessing the ITS Application when pressing F1 on an input field, the following dump occurs. ITS_EXPRESSION_NOT_NUM Template "iac\dm\generator.html" has triggered a runtime error in function "topinclude". Cause of error: "ANONYMOUS" could not b
-
When I try to do Database Initialization step as a part of running Adobe LiveCycle Configuration Manager I got LCMerror3004 error. I have jboss 3.2.5 installed and MySQL also installed on my machine. Bootstrapping started Bootstrapping: User Manager
-
Won't connect to internet at all!
My macbook pro won't connect to the internet at all. It says that it's connected and working fine, but safari nor chrome will open. I tried connecting it with an ethernet cable and still nothing. Does anybody know what's wrong and how to fix it?