Sap script - se71 - change in form
Hi I tried to change as below but it giving me error as below. please provide me the solution.
change Code in script:
/: DEFINE V_QMATA.
/: PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &VBLKP-MATNR&
/: USING &VBLKP-WERKS&
/: CHANGING &V_QMATA&.
/: ENDPERFORM.
/: IF &V_QMATA& EQ 'Z0001'.
/E
/: ENDIF.
Error when i syntex check for sap script:
( Check by Go to text -> check)
Symbol expected
Too many parameters
Code in Calling program ( This program is my printing program)
form get_qmata TABLES fp_it_intab STRUCTURE itcsy
fp_it_intabb structure itcsy
fp_it_outtab STRUCTURE itcsy.
data : v_matnr like marc-matnr,
v_werks like marc-werks,
v_qmata like marc-qmata.
READ TABLE fp_it_intab INDEX 1.
CHECK sy-subrc EQ 0.
MOVE fp_it_intab-value TO v_matnr.
READ TABLE fp_it_intabb INDEX 1.
CHECK sy-subrc EQ 0.
MOVE fp_it_intabb-value TO v_werks.
select single qmata from marc into v_qmata where matnr = v_matnr
and werks = v_werks. .
READ TABLE fp_it_outtab INDEX 1.
CHECK sy-subrc EQ 0.
READ TABLE fp_it_outtab INTO wa_outtab WITH KEY name = 'I_QMATA'
BINARY SEARCH.
IF sy-subrc EQ 0.
wa_outtab-value = v_qmata.
move v_qmata to fp_it_outtab-value.
MODIFY fp_it_outtab INDEX sy-tabix transporting value.
ENDIF.
endif.
endform.
hi
chk this
/: DEFINE V_QMATA.
/: PERFORM GET_QMATA IN PROGRAM ZRVADEK01
/: USING &VBLKP-MATNR&
/: USING &VBLKP-WERKS&
/: CHANGING &V_QMATA&.
/: ENDPERFORM.
/: IF &V_QMATA& EQ 'Z0001'.
/E
/: ENDIF.
FORM GET_QMATA TABLES input STRUCTURE itcsy
output STRUCTURE itcsy.
endform.
regard
nawa
Similar Messages
-
Step by step procedure to design a form using SAP Scripts (SE71)
Hello Experts, I am new to SAP Scripts ...I am interested to learn SAP Scripts,
Please help me out to learn SAP Scripts by giving some example codes.
Thanks and Regards,
Shaik.check the following link for the same.
SAP Script, Change form , SE71
Regards,
Gauravjit
Reward points if the link is helpful -
Hi Guys,
I would like to ask how the Program Symbols work.
E.g. I have a symbol 'XADR-FAX_number' but no table or structure 'XADR' exist in the system. How can I find out from where the script takes the value for this symbol?
Many thanks,
JanStandard symbols are stores in the table TTDTG (SAPscript: Standard Symbols for Word Processing)
Chk this help for more details.
http://help.sap.com/saphelp_40b/helpdata/pt/d1/8033c3454211d189710000e8322d00/content.htm -
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 -
Change the Package for SAP Script
Hi,
I need to change the package for the SAP Script which is saved as a local Object and assing a new request to it. The Script is maintained in 11 Languages. Can any one please suggest how to do that
ThanksHi,
goto SE03
Click on change object catalogue.
Use Form (or other) as objecttype, type in your sap script object, execute.
Form there you can change the package.
Kind regards, Rob Dielemans -
Need to convert a SAP Script to Smart Form
Hello,
I need to convert a SAP script to a Smart form.
I am aware of converting it but have a question abt print program?
Can the print program which is currently attached to the SAP script supprot the Smart form?
Could some one let me know if i can use the same program or need to do some modifications in it?
Pointa rewareded if useful.
Thanks,
Krishnahi
t-code smartforms
utilities->migrate sapscript
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
Check these threads.
Smartforms -> sapscript
Re: Convert SapScript to Smartforms ?
regards.
Kiran Sure -
Import PE51 Form to SAP Script
Hello Experts,
I am Importing PE51 form to SAP Script.The Problem is after Executing the Program RFFOUS_C the PE51 form is coming...into SAP Script But it(PE51 Form) is Compressing?.I don't know why?.But when i executing the Program RPCDTCU0_CE.The PE51 Form is Showing Exactly..without any Compression.
In Searching the Forum i have found these threads..But in these threads i haven't found any Solution
Integration of SAP Script form and HR Form
PE51 - Form Editor
Thanks in advance.Hey ankur,
Normally you get dashes instead of line because of two reasons:
1. Because the Font Size you are using for the Line is Small hence it cannot print a continous Line..
Please increase the Font Size and try checking in the Layout.
2. Sometimes the SAP printer you have configured does not support the Font Type You have used in Scripts...
Kindly check T-CODE SPAD to see the Device type of the printer you are using supports that font.
Hope this helps you...Have a nice day at work..
Thanx,
Navin.... -
Hi,
can we use samrt forms instead of SAP scripts in production order forms.
If yes please tell me how.
I know OPK8 transactiona and over there we can use either SAP scripts or pdf forms.Hi,
Satandard SAP doesn't allow you to use Smartforms for Production Order Printouts. You can however use the Printprogram and get it to trigger a smartform instead of a SAP script. Work with your technical team for more details on that.
Arvind Rishi -
How to Migrate SAP Scripts to Adobe form
Hi,
Can yo uplease tell me step by step how to convert/migrate SAP Script to Adobe forms.
Thanks,
Rajeev GuptaHi
Transforming SAP Scripts - > Smartform -> Adobe Forms is the right way.
refer this thread...
[Re: Convert SAP Scripts to Adobe PDF Forms|Re: Convert SAP Scripts to Adobe PDF Forms]
Regards
Raj
Edited by: Rajasekhar Dinavahi on Dec 9, 2008 5:25 AM -
521
- Heading for trans. w/out sp.G/L indicators (item sorting method 2)-
Transactions without special G/L indicators
522
- Heading for trans. with sp.G/L indicators (item sorting method 2)-
&T074T-LTEXT&
523
- Heading for open item list of line items -
&ULINE(71)&
<K>Invoice No,,Reference.,,Inv.Date,, Due date,,,,
Balance</>
&ULINE(71)&
PERFORM GET_DATE IN PROGRAM ZREPORT
USING &BSID-BELNR&
CHANGING &S_DATE&
ENDPERFORM.
530
- Line items Customer open items -
&BSID-BELNR&,,&RF140-BELEGNUM&,,&BSID-BLDAT&,,&S_DATE&,,
FORM get_date tables
int_cond structure itcsy
outt_cond structure itcsy.
BREAK SNAGI.
tables : bseg.
data : w_belnr type ITCSY-value.
DATA due_date TYPE rfpos-faedt.
READ TABLE OUTT_COND WITH KEY name = 'S_DATE'.
IF sy-subrc = 0.
outt_cond-value = S_itab11.
MODIFY outt_cond INDEX sy-tabix.
ENDIF.
SELECT SINGLE
shkzg zfbdt zbd1t zbd2t zbd3t rebzg
FROM bseg
INTO CORRESPONDING FIELDS OF bseg
WHERE
*bukrs = bukrs AND
belnr = int_cond-value.
*AND vbeln = belnr.
CALL FUNCTION 'NET_DUE_DATE_GET'
EXPORTING
i_zfbdt = bseg-zfbdt
i_zbd1t = bseg-zbd1t
i_zbd2t = bseg-zbd2t
i_zbd3t = bseg-zbd3t
i_shkzg = bseg-shkzg
i_rebzg = bseg-rebzg
I_KOART = 'D'
IMPORTING
e_faedt = due_date.
outt_cond-value = due_date.
MODIFY outt_cond INDEX sy-tabix.
ENDFORM.
Now the problem is that,it is int_cond-value is always picking up the first invoice number.
and the net due date is always same for all invoices..?
should I loop in the sap script or in the form..?Solved my self.
just placing the perform and endform in 530 -
Issue in alignment of PE51 data when printing it in SAP Script
Hi Experts
I have a SAP Script which is used to print Check at the top and Re-numeration Statement at the second half via RFFOUS_C program. The re-numeration statement is designed in PE51. The Check is designed in SAP Script and the PE51 form is printing inside the script using Main window/ Text Element : 525-HR.
The FM RP_IMPORT_PAY_STATEMENT is used inside the RFFOUS_C program which returns the table PFORM and the contents of the PFORM is exactly the re-numeration statement data and are getting printed one by one in the script using the variable REGUD-TXTHR. My object is fine with all the above said things. Only issue is with the alignment which is weird in SAP Script for the re-numeration part. But when I look into PC00_M10_CEDT (TCODE to view re-numeration statement) the output of designed PE51 form is good with proper alignment.When it is printed via script the alignment is not good at all.
There is some differences in the formats of printing between PE51 and SE71. Do not know what exactly it is. How I can resolve this issue?
Thanks
Siva
Message:SivaHi Madhu,
Sorry for the delayed response.See the below screen shot.This is how it prints now.The amounts are not aligned.Increasing the line spacing will increase only the space between the lines and i am using same character format for the variable REGUD-TXTHR.I would like to align them.
Thanks
Siva -
Hi Peers,
I am working on the report which calling the Form from SAP Script and displaying the form.
I wanted a selection screen in which if the user enters some value it should automatically preview in the form.
I am really new to the ABAP Pls some help on this .
Any code is appreciated.
Every answers will be rewarded.
Pls peers help on this.
Seema.Hi,
where is a simple example:
PARAMETERS: KUNNR(10).
PARAMETERS: PREVI AS CHECKBOX DEFAULT 'X'.
START-OF-SELECTION.
PERFORM OPEN_FORM.
PERFORM START_FORM.
PERFORM PRINT_DATA.
PERFORM END_FORM.
PERFORM CLOSE_FORM.
*& Form OPEN_FORM
FORM OPEN_FORM.
CLEAR ITCPO.
ITCPO-TDCOPIES = 1.
ITCPO-TDDEST = PRINTER.
IF PREVI = 'X'.
ITCPO-TDPREVIEW = 'X'.
ENDIF.
ITCPO-TDNEWID = 'X'.
ITCPO-TDDATASET = 'test'.
ITCPO-TDSUFFIX1 = PRINTER.
ITCPO-TDSUFFIX2 = 'test'.
ITCPO-TDDELETE = ' '. " Não eliminar imediatamente
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = ' '
FORM = 'YOUR_FORM_NAME'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
ENDFORM. " OPEN_FORM
*& Form START_FORM
FORM START_FORM.
CALL FUNCTION 'START_FORM'
EXPORTING
LANGUAGE = SY-LANGU.
ENDFORM. " START_FORM
*& Form PRINT_DATA
FORM PRINT_DATA.
SELECT * FROM KNA1 WHERE KUNNR EQ KUNNR.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEST'
WINDOW = 'MAIN'.
ENDFORM. " PRINT_DATA
*& Form END_FORM
FORM END_FORM.
CALL FUNCTION 'END_FORM'.
ENDFORM. " END_FORM
*& Form CLOSE_FORM
FORM CLOSE_FORM.
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
OTHERS = 2.
ENDFORM. " CLOSE_FORM
Then, you must create your SapScript in order to print some information.
Regards, -
Problem in long text in SAP script editor
Hi ,
i am maintaining long text in SAP script editor , when i am trying to change the long text in SAP script that changes are not reflected in print preview ,for example when i am giving tabs in the script then in print preview of the PO these tabs are displayed as , , ( comma) , and underlines are not appearing in print preview.please help me on this.
Thanks and regards.
Rajeshwar.hi
you have to install the correct printer which supports the displaying the drawings and objects/ -
Enquiry(SAP SCRIPTS)
hi experts !
can any one tell me the wat is form name, driver program & t.code for ENQUIRY ? (sap scripts )
or
list of form names and their respective driver programs , Tcodes ?
Regards,
Rajsh
Edited by: rajesh k on Mar 4, 2008 10:59 AMthanks for Reply !
of course i know that but am not getting the appropriate one..!
am facing the problems like
when i get the form name,, the driver program is not there .
when i know the both but am unable to find the respective tcode for that form ?
can any one pls provide me ?
list of form names with respective driver programs , tcodes ?
Cheers,
Rajsh. -
SAP Script Lineitems printing in different pages
Hi All,
I'm having a strange problem. I've created Sap Script for Goods Receipt form.
For Material Document(60000201) which is having 2 line items its printing both line items on same page, Other Material Document(60000205) which is also having 2 line items, each line item is printing in different page(each line item is printing in new page).
I check main page is having enough space.
Both the Material document are printing through same Text element.
Print program is SAP standard, I've created only layout.
I have used /: Protect /:EndProtect for displaying line items.
searched in google as well, but couldnt find correct solution.hi ,
i have used /: Protect /:EndProtect for displaying line items.
as you have used /: Protect /:EndProtect This will print on same page without page break
regards
Deepak.
Maybe you are looking for
-
HP LaserJet 1536 - grey background when printing pdf files
HP LaserJet M1536dnf MFP, Windows 7 32-bit Firmware data 20140123 The latest drivers from official site (HP Universal peinting PCL and Universal printing PS v 5.8.0) When printing pdf files from Acrobat Reader, Adobe Acrobat or FoxIt the grey backgro
-
How to automate the alias between Windows AD and SAP accounts
I have authentication working where I can logon via SSO with Windows AD authentication and still get to SAP BW via SAP SNC. In getting this to work I had to manually create an alias between the Windows AD account and th SAP Account. We will have th
-
SCCM Client push or manual installation does not complete
Hi All, I have deployed SCCM 2012 R2 in my lab environment. It has been deployed successfully. I have a issue in which the clients are not getting installed both manually and by pushing the agents via the console. My servers are as follows: SCCMSVR.
-
ITunes is pink under Remote Desktop
I can't change my remote desktop to 32-bit, it's locked to 16-bit. I have a headless media computer hooked up to my main AV rack, I remote desktop into it to do any configuration needed. It's really jarring to see the hot-pink iTunes staring at me wh
-
Hi can you help the sound is not working on my Mac I have went into settings and there are no option for interal speaker help