Hi all,
I had created a smartform for PO and print program for the same.
My requirment is that I want to call the PO smartform from ME22n and all the details ie PO number,supplying plant,doc date, PO qty etc will be displayed on the smartform but I am not getting that.
I had gone to Tcode NACE and in the processing routine of output type ie NEU I had entered the Form name and printprogram.But I am not aware of form routine whether I ve to write separate Form Routine for the driver program.
Pls tell me the necessity of form routine here.
Pls experts its an urgent requirement and help me out regarding the same.
I will reward points for the same.
With regards,
Abir.
The routine name is the the soubroutine in your print program.
For eg in Script:
If your print prog starts as
FORM entry USING return_code us_screen.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing.
IF retcode NE 0.
return_code = 1.
ELSE.
return_code = 0.
ENDIF.
ENDFORM.
Then "entry" will be the routine you are looking out for.
Message was edited by: vinodh balasubramaniam
Hi,
SMARTFORMS have inbuilit subroutines in it, you dont have to assign the subroutine in NACE transaction, if you have assigned the 'form name' and the 'driver program' it is enough, in the case of scripts, if there is any subroutine, then this will be populated with that,
Rgds,
Hi Abir,
Enter your Smartform form under the smartform column, not under forms(only for Sapscripts) and remove the standard form MEDRUCK, which was already assigned, this would work fine, dont worry about the routines.
Regards:-
Santosh
Hi,
Based upon the ouput type in tnapr you will find the routine name in the field field ronam. this is the starting point of the print program.
exampe:
print program: zsd_pritprogam
form Routine: entry
smarform is : zsmartform
so 'entry' is a form in the print program(zsd_pritprogam).
form where your control to print starts.
Hope this helps.
thanks,
jaffer
Message was edited by: Jaffer Vali Shaik
Add a comment