on 06-09-2011 10:16 AM
Hi,
i have the requirement to develop the layout in script for dispalying the Quality Inspection.where i need not to write any driver program
they did some configuration in the transaction 'QA32'.my script is automatically triggered by some standard Report.my problem is
when i try to issue the output it is showing that 'text element is not defined'and it is getting dump.even i mentioned the text element in script.i am not getting what are the text elements i need to mention in the script.
Thanks
Srilatha.M
This sounds strongly like you are using a standard driver program, or a Z-driver-program derived from a standard one, along with a custom form.
You better had derived your Z-FORM as well from the according standard form.
But anyway, if you get the error message that a particular text-element is missing you got 2 ways to come around this.
1. Either decomment the call of that text-element in your driver program, therefore search for the name of said textelement in your driver program and decomment the according CALL FUNCTION 'WRITE_FORM'.
2. Or Add that textelement in your script.
Therefore make a new line with paragraph format /E and the missing textelement name right next to it. The name of the missing textelement is in your error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srilatha,
I have worked on QM_INSP_RESULT. these forms don't have any output types they used to be called within the program.
You must have copied standard script into Z script. There must not be any error for Text elements it could be info messages. just activate your script and execute the transaction calling form.
I think in the transction, which is triggering your form, you have to mention your script name in the selection screen. then your script will trigger.
For making changes as per your requirement, you no need to change the standard driver program instead you can create a suproutine pool from SE38 and write subroutines there. and call these subroutines from your sap Script e.g.
/:PERFORM get_date IN PROGRAM zreport
/:USING &SALESORDER&
/:CHANGING &S_DATE&
/:ENDPERFORM
The ABAP Code would be........
REPORT zreport.
TABLES ztab.
FORM get_date TABLES in_tab STRUCTURE ITCSY
out_tab STRUCTURE ITCSY .
READ TABLE in_tab INDEX 1.
SELECT some_date FROM ztab WHERE salesorder = in_tab-value.
IF sy-subrc EQ 0.
READ TABLE out-tab INDEX 1.
MOVE ztab-somedate TO out_tab-value
MODIFY out_tab INDEX 1.
ENDIF.
ENDFORM.
hope this is helpful to u.
cheers
NK.
Hi,
There are Two method we can do in SAP Script modification,
1) By copying the standard script into Zscript then we can design the layout(only modyfing layout) and we can pass some variable also using Perform <form_name > in program ,,,, for this you just create one subrroutine pool program then pass value to sccript.
for this method no need to change driver program....
2) After copying script to zscript if you are adding some text element defenetly you need to create driver program also , so dont use this method....
so try to use perform statement in zscript..
Edited by: Ramesh T on Jun 15, 2011 7:28 AM
Edited by: Ramesh T on Jun 15, 2011 7:29 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please make sure, if the text elements defiend by you are being calle din teh driver program and vice a versa.
Even better if you debug and check which text element is throwing an error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you have created a new Z script? or modified an existing standard script??
How do you think your calling program and the new windows and text elements are going to link??
1)FIrst find out the program name.
2)ELse use teh existing text elements only.
3)We cannot just create everything new and then expect the program to execute.
Edited by: sap_wiz on Jun 9, 2011 3:16 PM
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.