2010 Jul 07 8:05 AM
Hi all,
I am working on the requirement to print the work order attachments (tcode iw32).
To achieve this functionality we have found out enhancement IWO10018, from which we are using function exit 'EXIT_SAPLCOIH_018' and screen exit SAPLXWOC screen 0900.
So, for this i have written my code to retrieve attachment names in the function exit and created subscreen 0900 in function group XWOC.
But now i am facing issues with how to link up the function exit with the screen exit?
can anybody help me out please?
Thanks,
Archana
Hi all,
I am working on the requirement to print the work order attachments (tcode iw32).
To achieve this functionality we have found out enhancement IWO10018, from which we are using function exit 'EXIT_SAPLCOIH_018' and screen exit SAPLXWOC screen 0900.
So, for this i have written my code to retrieve attachment names in the function exit and created subscreen 0900 in function group XWOC.
But now i am facing issues with how to link up the function exit with the screen exit?
can anybody help me out please?
Thanks,
Archana
2010 Jul 07 8:22 AM
Hope you have gone through the documentation for enhancement for IWO10018 in SMOD if not just check it..!
hope it helps
2010 Jul 07 8:30 AM
Hi Anup,
Yes. I have gone through the documentation in SMOD. But i am not able to understand how to link up function exit and screen exit. If you can explain me i will be very thankful to you.
Thanks,
Archana
2010 Jul 07 8:42 AM
Hi Archana,
First create the project in CMOD.
GOto Tcode > CMOD create project
Click on ENhancment assig button ...
Then add your Enhanment IWO10018 , click on components
Activate
then yopu will find fucntion module screen exit, Doublie click on 900 screen,
It will automatically link up
regards,
Ajay
Edited by: Ajay reddy on Jul 7, 2010 9:44 AM
2010 Jul 07 8:47 AM
Hi Ajay,
I have already done that. But what i need to do in this requirement is, i need to fetch my data in function exit in an internal table and pass this internal table to screen exit for display.
But in the screen exit, my internal table is not visible. So, my question is will i be able to acheiev this functionality?
Thanks,
Archana
2010 Jul 07 8:51 AM
Hi,
you have add your fields in structure COCI_AUFK or CAUFVD (I mean Final internal table in that program), by using the append structure.
then you will able to see those fields .
regards,
AJ
Edited by: Ajay reddy on Jul 7, 2010 9:52 AM
Edited by: Ajay reddy on Jul 7, 2010 9:53 AM
2010 Jul 07 9:36 AM
Hi,
By using the Screen Exit you are adding new fields in to the Standarad Functionality. Just want to know for the new screens what are the screen names you gave.
Just append the new fields in the relevant structure and pass your functionality values into the corresponded structure fields.
How you are going to display the internal table value there?
With Regards,
Sumodh.P
2010 Jul 07 9:55 AM
Hi,
How about EXPORT your internal table from the function exit and IMPORT in screen (Assuming exit is called before the screen)?
But most of the times, every screen exit is linked to 2 customer exits. One called in PBO and the other in PAI. search in your main screen with CALL-CUST to see what exits are available.
Thanks,
Vinod.
2010 Jul 07 9:42 AM
Try and declare you variables in the top include of the Function module exit and then check and remember to Check if the screen Fieled other than customer Exit are from dictionary ...if yes you too take it from the same dictionary structure...you will get all the values then if they your ( OR the field you are trying to have on the subscreen shoud also be the part of the Standard screen structure ( if your added fields are in the CI_* includes in standard tables ie. screen structure is CAUFVD and we have ci_aufk included in it...) ...include them on your sub screen ....)
Edited by: Anup Deshmukh on Jul 7, 2010 10:53 AM