Help on SAP script
hi,
I was trying script program for single page. so when I am calling the function 'open_form' ...i mean when i double clicked on it....i was taken to the module page....but i was not able to change the exporting parameters...though I know what to change....also i cudn't get the module code in the program....
**it's like I am kinda stuck after going to the module page.....can someone tell me what am I supposed to do after that.......
hi singh,
i guess u have to read it properly.....i am not trying to change anything....trying to learn writing a script program....I have already learnt ABAP...but kinda had a long break...so I almost forgot most of it....trying to recollect it.....and as a process I am getting stuck...
and Yes.....If I know everything in ABAP I don't need to register in the forum....
Mr.sanjeev singh......if possible try to help me learning it......but never discourage me
Similar Messages
-
Hi!
can any one help me regarding SAP SCRIPT. i unable to write a print program for sap script . can any one can send me sample code using ITCSY structure.
Thanks in advance.
Thanks & Regads,
DurgaPrasad.kHi,
refer this to write print program:
<b>The Print Program</b>
Structure of a print program
OPEN_FORM function
CLOSE_FORM function
WRITE_FORM
START_FORM function
END_FORM function
CONTROL_FORM function
The print program is used to print forms. The program retieves the necesary data from datbase
tables, defines the order of in which text elements are printed, chooses a form for printing and
selects an output device and print options.
<b>Function modules in a printprogram:</b>
When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine
forms into a single spool request use START_FORM and END_FORM.
To print textelements in a form use WRITE_FORM. The order in which the textelements are printed,
is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you
can also use the WRITE_FORM_LINES function module.
To transfer control command to a form use CONTROL_FORM.
<b>Structure of a print program</b>
Read data
Tables: xxx.
SELECT *
FROM xxx.
Open form printing - Must be called before working with any of the other form function modules.
Must be ended with function module CLOSE FORM
call function 'OPEN_FORM'.....
To begin several indentical forms containing different data within a single spool request, begin each
form using START_FORM, and end it using END_FORM
call funtion 'START_FORM'.....
Write text elements to a window of the form
call function 'WRITE_FORM'.....
Ends spool request started with START_FORM
call funtion 'END_FORM'.....
Closes form printing
call function 'CLOSE_FORM'...
OPEN_FORM function
Syntax:
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = ' '
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
OTHERS = 11
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>Some important parameters:</b>
FORM Name of the form
DEVICE PRINTER : Print output using spool
TELEFAX: Fax output
SCREEN: Output to screen
OPTIONS Used to control attrubutes for printing or faxing (Number of copies, immediate output....
The input for the parameter is structure ITCPO.
CLOSE_FORM function
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 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.
Paramerters:
RESULT Returns status information and print/fax parameters after the form has been printed.
RESULT is of structure ITCPP.
WRITE_FORM function
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = ' '
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
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Some important parameters:
ELEMENT Specifies which textelement is printed
WINDOW Specifies which window is printed
TYPE Specifies the output area of the main window. This can be:
TOP - Used for headers
BODY
BOTTOM - Used for footers
FUNCTION Specifies whether text is to be appended, replaced or added
Example of how to use the WRITE_FORM function module together with a script.
Form layout of the MAIN window
/E INTRODUCTION
Dear Customer
/E ITEM_HEADER
IH Carrier, Departure
/E ITEM_LINE
IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
/E CLOSING_REMARK
<b>The print program</b>
Writing INTRODUCTION
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'INTRODUCTION'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Writing ITEM_HEADER
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Set ITEM_HEADER into TOP area of main window for subsequent pages
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'SET'
TYPE = 'TOP'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Write ITEM_LINE
LOOP AT .....
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_LINE'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8.
ENDLOOP.
Delete ITEM_HEADER from TOP area of main window
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_HEADER'
FUNCTION = 'DELETE'
TYPE = 'TOP'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
Print CLOSING_REMARK
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'CLOSING_REMARK'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
OTHERS = 8
START_FORM function
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX =
FORM = ' '
LANGUAGE = ' '
STARTPAGE = ' '
PROGRAM = ' '
MAIL_APPL_OBJECT =
IMPORTING
LANGUAGE =
EXCEPTIONS
FORM = 1
FORMAT = 2
UNENDED = 3
UNOPENED = 4
UNUSED = 5
SPOOL_ERROR = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END_FORM function
CALL FUNCTION 'END_FORM'
RESULT =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SPOOL_ERROR = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONTROL_FORM function
The CONTROL_FORM function module alows you to create SapScript control statements from within
an APAB program.
Syntax:
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command =
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Example:
Protecting the text element ITEM_LINE
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'PROTECT'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
TEXELEMENT = 'ITEM_LINE'.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'ENDPROTECT'.
rgds,
latheesh
Message was edited by: Latheesh Kaduthara -
Hi all....... help in SAP SCRIPTS
pls help me out and tel me how to work with SAP SCRIPTS
i want complete detailed procedure for itHi Deepthi,
Sap Scripts can be created using the transaction code SE71.The Layout set consist of different elements like Pages, Windows, Page Windows, Character String and Paragraph. The contents to be displayed in the window are written in text elements. The Driver program should be created in SE38.The components of the driver program are
Table Statements- Here you will declare the table name from where the data has to be brought in.
Data Statements- Here you can declare the variables or the internal tables that you may use
Select Statements- After declaring the variables, internal table you use the select statement to select the required data from the table
Open_Form- After selecting the data you open the layout set in which you want to display the data. In the Open_Form Function you mention the layout set name open.
Write_Form- then you display the data in the layout set using the Write_Form function. Here you specify the Element Name and the window in which you display the data.
Close_Form- After displaying/Printing the Data you close the form. i.e. the layout set using the close form Function.
You can check this link to develop a simple sap script.
http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
http://sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
Reward points if it is useful.
Thanks,
Geeta -
Hi,
I have just now started to learn sap script.I want to know good book to learn sap script.If possible send some sample programs.
thanks in advance.Simple SAP script code:
Driver program:
*& Report ZMADHU_PROGRAM *
REPORT ZMADHU_PROGRAM.
DATA: I_EKPO TYPE STANDARD TABLE OF EKPO WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001..
PARAMETERS: P_EBELN LIKE EKPO-EBELN.
SELECTION-SCREEN END OF BLOCK B1.
SELECT * FROM EKPO
INTO CORRESPONDING FIELDS OF TABLE I_EKPO
WHERE EBELN = P_EBELN.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZMADHU'
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 = 'HEADING'
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.
LOOP AT i_ekpo.
*v_count1 = v_count1 +
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = '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 '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.
SAP Script:
create the window main with two with appropriate size.
in the text include following lines.
/E HEADING
Items Item Description Net Price
/E ITEM
&i_ekpo-ebelp&,,&i_ekpo-txz01&,,&i_ekpo-NETPR&
AND activate both driver prg and script.
execute the driver program -
Highlighted LLC text should come exactly below KOENIGSDROS....
how to do it....also attaching the script code in other sshot...
Plz help...Hi DARSHAN panchal,
continous text always starts at the start of the window and ends at the end of the window. If the text is too long for 1 line, it will start in the next line at the start of the window.
so wether redesign your windows, by outsorcing your leading text into a seperate window. Or split your variable so it does not extend your window-size
if &GC_ADDRNAME2(40)& <> ''.
,, &GC_ADDRNAME2(40)&
endif.
if &GC_ADDRNAME2+40(10)& <> ''.
,,&GC_ADDRNAME2+40(10)&
endif.
regards
Stefan Seeburger -
Help in Sap script(se71)
Hi
i Wan to know if i have Z-layout how i can know from which standard program it copy
Thanks
Have a nice dayHi,
After creating a Z from a standard user can modify everything including description of the script / program. So there is not such direct way to determine that.
For scipts maybe u can try to look into T-code NACE and see related scripts.
Also, TNAPR table can be used.
Regards,
Vivek -
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,
annamreddyWe 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 -
Hi All,
Need help in SAP Script translation.
I have to change some hardcoded text from one language to another language.
I went to SE63 and changed the text, but the changes are not added into transport request.
Is there anyway to include the changes into the transport request? Please reply back...Hi,
Other way would be to create a new request all together for the form. SE03----->Include object in tran req..Write click... execute. Click radiobutton Selected Objects. Add a new line at the bottim. FORM give form name in front of it. Tick the sequare box. F8. Click on Save in req.
Transport this request.
Reagards
Raju Chitale -
Please help for using perform in SAP script
As subject.
My sap script code as below:
/: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
/:USING &SPELL-WORD&
/:CHANGING &SPELL-WORD&
/:ENDPERFORM
My program ZRAP004 code as below:
FORM get_chamt_date USING u_iword TYPE spell-word
CHANGING u_oword TYPE spell-word.
CONCATENATE u_iword '元整'(t01) INTO u_oword.
endform.
This form is for check printing.
It's by standard function 'F110' to excute check printing.
But when i finished this transaction. System return error message as below:
<b>This routine contains 2 formal parameters, but the current call
contains 4 actual parameters.</b>
Please help. Thanks a lot!!Hiii
PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
FORM CDE_CENT
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM. -
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. -
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... -
Moved to correct forum. Please use an informative subject in future.
Hi,
can some one help in knowing whether can we write the text elements from sub routine being called from Sap script.
Actually i have to develop a script for check printing and in the table data i have to print 3 colums:REGUP-BUDAT,REGUP-XBLNR,REGUP-DMBTR in two section on the same window with 25 line each so that total 50 lines can be printed,Standard print prg is RFFOUS_C.can some one help in the same..
Thnxs
Edited by: Matt on Apr 9, 2009 10:06 AMHi Hemant,
use like this
<B0>Three Thousand only</>,, <B4>&Name& </> <B8>&TOTAL& </>
HR Dept.
Thanks & regards,
Dileep .C -
Hi
This is Lahari...Iam going to attend interviews...cud u pls give real time questions n answers on SAP Scripts? i didn't attend interviews before...I'd be thankful to u guys.
My id is [email protected]
Lahari.Hi Lahari,
Check these links.
http://www.sappoint.com/abap/ssintro.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/lsetssap.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
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.henrikfrank.dk/abapuk.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
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapuk.html
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Help reqd for finding TAXES & CONDITIONS FOR GIVEN PO IN SAP-SCRIPT
HI ALL,
Currently iam working on SAP-SCRIPT developing PO in that i displayed fields like EMATN TYPE EKPO-EMATN,( material no. )
TXZ01 TYPE EKPO-TXZ01, ( long text )
MEINS TYPE EKPO-MEINS, ( units )
MENGE TYPE EKPO-MENGE (quantity)
now i want to display taxes & conditions for given ematn no.( material no . ) so from which tables i should get the data how to display. plz help me.
thanks in advance.
Regards,
mahesh dudamHi !!
for this please study teh following extract :
All pricing values are maintained in the KONV table for the respective pricing condition . Extract these values from KONV table by passing EKKO-KNUMV values for the Purchase order number from the EKKO purchase order header table .
************************************************************************88
FORM GET_PRICING_DATA USING P_KNUMV.
SELECT * INTO TABLE I_KONV
FROM KONV
WHERE KNUMV = WA_EKKO-KNUMV.
IF SY-SUBRC = 0.
SORT I_KONV.
ENDIF.
ENDFORM. " GET_PRICING_DATA
*& Form get_tax_details
extract Tax item details.
-->P_EBELp for purchase order item.
FORM GET_TAX_DETAILS USING P_EBELP.
DATA : L_OCTROI LIKE KONV-KWERT,
L_BASE LIKE KONV-KWERT,
L_OTHERS LIKE KONV-KWERT,
L_DISCOUNT LIKE KONV-KWERT,
L_PFORWARD LIKE KONV-KWERT,
L_INSU LIKE KONV-KWERT,
L_NUM LIKE I_KONV-KUMZA VALUE 1,
L_DENO LIKE I_KONV-KUMNE VALUE 1,
L_KPEIN LIKE KONV-KPEIN VALUE 1,
L_FRT LIKE KONV-KWERT,
L_CHAR(15).
*-- getting numerator and denominator for base value.
READ TABLE I_KONV WITH KEY KSCHL = 'PBXX'.
IF SY-SUBRC = 0.
L_NUM = I_KONV-KUMZA.
L_DENO = I_KONV-KUMNE.
L_KPEIN = I_KONV-KPEIN.
ELSE.
READ TABLE I_KONV WITH KEY KSCHL = 'PB00'.
IF SY-SUBRC = 0.
L_NUM = I_KONV-KUMZA.
L_DENO = I_KONV-KUMNE.
L_KPEIN = I_KONV-KPEIN.
ELSE.
READ TABLE I_KONV WITH KEY KSCHL = 'P001'.
IF SY-SUBRC = 0.
L_NUM = I_KONV-KUMZA.
L_DENO = I_KONV-KUMNE.
L_KPEIN = I_KONV-KPEIN.
ELSE.
READ TABLE I_KONV WITH KEY KSCHL = 'P000'.
IF SY-SUBRC = 0.
L_NUM = I_KONV-KUMZA.
L_DENO = I_KONV-KUMNE.
L_KPEIN = I_KONV-KPEIN.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
CLEAR : V_OCTROI,V_OTHERS, V_DISCOUNT,V_PFORWARD,V_INSU,V_FTR.
LOOP AT I_KONV WHERE KPOSN = P_EBELP.
*-- Considering the numerator denominator and UOPricing
IF I_KONV-KPEIN = 0 .
I_KONV-KUMZA = 1. " Numerator
I_KONV-KUMNE = 1. " Denominator
I_KONV-KPEIN = 1. " Unit of pricing
ENDIF.
IF NOT I_KONV-KWERT IS INITIAL .
IF I_KONV-KRECH = 'C' AND I_KONV-KSCHL <> 'PB00'
AND I_KONV-KSCHL <> 'PBXX'.
I_KONV-KWERT = ( I_KONV-KWERT * I_KONV-KUMZA )
* L_KPEIN / ( I_KONV-KUMNE * I_KONV-KPEIN ).
ELSEif I_KONV-KRECH = 'C' AND I_KONV-KSCHL = 'PB00'
AND I_KONV-KSCHL = 'PBXX'.
I_KONV-KWERT = ( I_KONV-KWERT * L_NUM * L_KPEIN ).
/ ( L_DENO ).
elseif I_KONV-KRECH = 'A' AND I_KONV-KSCHL = 'PB00'
AND I_KONV-KSCHL = 'PBXX'.
I_KONV-KWERT = ( I_KONV-KWERT * L_NUM * L_KPEIN )
/ ( l_deno ).
ENDIF.
ENDIF.
CASE I_KONV-KSCHL.
*-- For base price
WHEN 'PB00'.
L_BASE = L_BASE + I_KONV-KWERT.
WHEN 'PBXX'.
L_BASE = L_BASE + I_KONV-KWERT.
WHEN 'P000'.
L_BASE = L_BASE + I_KONV-KWERT.
WHEN 'P001'.
L_BASE = L_BASE + I_KONV-KWERT.
*-- For octroi
WHEN 'JOCM'.
L_OCTROI = L_OCTROI + I_KONV-KWERT .
*-- For discount calculation
WHEN 'ZDT%'.
L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
WHEN 'ZDN%'.
L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
WHEN 'ZDTV'.
L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
WHEN 'ZDNV'.
L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
*--- For packing forwarding .
WHEN 'ZPNV'.
L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
WHEN 'ZPN%'.
L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
*--- For frieght .
WHEN 'ZFTV'.
L_FRT = L_FRT + I_KONV-KWERT.
WHEN 'ZFT%'.
L_FRT = L_FRT + I_KONV-KWERT.
WHEN 'ZFNQ'.
L_FRT = L_FRT + I_KONV-KWERT.
**-----for others
WHEN 'ZOTV'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
WHEN 'ZOT%'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
WHEN 'ZOTP'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
WHEN 'ZONV'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
WHEN 'ZON%'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
WHEN 'ZONP'.
L_OTHERS = L_OTHERS + I_KONV-KWERT.
*--- for insurance
WHEN 'ZINV'.
L_INSU = L_INSU + I_KONV-KWERT.
WHEN 'ZIN%'.
L_INSU = L_INSU + I_KONV-KWERT.
WHEN OTHERS.
CONTINUE.
ENDCASE.
CLEAR I_KONV.
ENDLOOP. -
Need help with Signature on Checks using SAP SCRIPT
Hi,
I am looking for some help on how to get the Printer Resident Singature on to the Check using SAP Script. We have a HP Laser 8150 Priter in which the Chip Contains the Signature ( Printer Resident Singaure ) and currentlly the ORACLE application is able to print this signature on the checks. Right now we are in Migration to SAP and we are trying to get this Signature to print on the Check using SAP Script.
Please help us.There are many ways to do this, the simplest way to print the signature is using HEX ENDHEX command.
1. Print the Printer font list from the printer configuration menu, Find the signature in the font list, next to it there'll be esacape sequence in ASCII and Hex format.
2. Add the following command in the window of the signature:
/: HEX TYPE PCL
/= Enter the Hex escape sequence(begins with 1B) from first step
/: ENDHEX
Regards
Sridhar
Maybe you are looking for
-
I am trying to access my university account from a computer in Germany and while I can access some features, such as e-mail, it is not allowing me access to my secure faculty account. The message I am getting is that I am using the wrong language, i.
-
Photoshop batch processing missing from menu
Hi everyone: I'm having a terrible time today trying to process the 3500 images I've got. I set up an action to process them, but I can't figure out how to link them to be used through Bridge. I'm running Bridge CS5 with PS CS4, and I'm used to going
-
Help! adobe acrobat X pro. Cannot edit a pdf.
help! I have adobe acrobat X pro. Cannot edit a pdf. watched videos, followed directions, nothing. Tried tools, edit document text, recognize text, then tried even to change font, nothing.
-
Arch 2.6.36 not automatically mounting USB devices
Hi, I am new to Arch but up to now i really like it and i am using this for my home server. Now i use 2 external USB 1TB disks for backup which i auto mount using /etc/fstab. The problem is that it is not auto mounting the volumes. /etc/fstab #Extern
-
Using Lightroom and then ACR and Photoshop on a another Computer
Hi all, I am wondering how I go when it comes to using photoshop lightroom on my home computer, with photoshop only for additional work yet at the same time being able to edit photos at school (they do not have lightroom) on ACR and Photoshop. Is the