on 05-11-2010 10:06 AM
Hi all,
I am working on a SAP script of shop papers. There exists a standard script 'PM_COMMON' and standard print program 'RIPRJT00'.
My requirement is to copy these into Z scrpt and Z print program and display additional fields in the script. In that i need to display main window data in table format.
So, in print program, i have fetched the values and anf inside the loop i am calling 'Write_form' for this window. But these values are not getting printed in my script. Print program is fetching values. But inside script, it is blank.
So, can anybody suggest me some solution on this issue?
Thanks,
Archana
I deleted my print program and copied the standard print program again. I retained the logic of retrieved values and the issue is resolved.
Thanks,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Config settings were changed to utilize new driver and new SAPScript. Previous poster is correct; SAP best practice is to use a Z-version of the SAPScript, add PERFORM routines, and leave the driver program as it is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is the Z script and the print program configured in NACE ?
Can you please the paste the code,, how you calling your write form within loop ?
Regs,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
LOOP AT I_FINAL INTO WA_FINAL.
MOVE-CORRESPONDING WA_FINAL TO RESBD.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MATERIAL'
WINDOW = 'MAIN'.
ENDLOOP. " loop on materials
This is the code i am using to display my main window table values.
Configuration is already done. Only this table values are not coming. Other data is coming correctly.
Thanks,
Archana
I know you might have done these steps already but for one more time check.
1. Put the break-point call function write_form.. Check the value of structure RESBD . Is it getting populated?
2. If yes then it must be an SAP script editor formatting issue.. Pls check the editor coding for Material element..
Like the tag foamats are right or not... something like below:
PA &RESBD-RSNUM& ,,&RESBD-RSNUM& ,,&RESBD-RSAR&
Pls check if there is any condition might be there for printing the item lines (Script editor in MATERIAL element)
3. Pls also check which version of language you are calling via your print program.
Regards,
Lokesh.
Hi Arcahna,
It is very strange.. I strongly belive that the problem is only with script formatting.. I wud suggest try to dubug the flow where it is getting disappeared.
Can you please paste the code that you are passing in script editor.. Pls send me right from start like from start of that Form element MATERIAL.
Archana,
No need of copying the standard print program for additional data. You can write a subroutine in SE38 (ABAP Editor as executable program) and then call the subroutine in SAP Script for processing and displayingt the additional data.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
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.