‎2007 Oct 03 12:32 PM
hi gurs,
i have created a smart form & it's application program but when in nace t-code i gave it's app program name and smart form name in processing routines then it ask for it's form routines name.
i have no idea abt form routines so pls tell me how to create it's form routine & if required then also give source code also and step by step.
regards,
anuj
‎2007 Oct 03 12:40 PM
Hi Anuj,
When you are Configuring your Print program of the smartform in Nace transaction in that case your print program will not be the same normal program.
Development will be inside FORM ENDFORM subroutine.This subroutine you will have to configure in the NACE transaction with the smartform.
‎2007 Oct 03 12:53 PM
hi
good
User exits are routine which SAP allows you to add in additional customized programs process without affecting the standard SAP programs.
form userexit_xxxxx
........................
endform
In VL01 - Create Delivery Order, standard program SAPMV50A, the standard program did not check for storage location equal to space, and delivery quantity less than one when the user click the save button. Therefore I have to insert the additional checking into the userexit routine.
Steps:-
Goto transaction VL01 to pick a Sales Order for delivery (you don't have to save the data)
In the initial screen, click System -> Status -> Double click on Program (Screen)
In the dialog program SAPMV50A, click Edit -> Search/replace
Type userexit in the Find field, then click the In program radio button and hit Enter
A number of userexit routine will be display. You'll have to roughly decide which is the correct userexit routine to used.
form userexit_save_document_prepare.
case xlips-pstyv.
when 'TAX' or 'REX'.
Accept this two Delivery item category
when 'REN'.
if xlips-lgort = space.
Reject this Delivery item category
message e001.
endif.
when others.
if xlips-matnr <> space.
Check storage location not space
if xlips-lgort = space.
message e002.
endif.
Check delivery quantity not zero
if xlips-pikmg < 1.
message e003.
endif.
endif.
endcase.
endform.
http://www.sap-basis-abap.com/sapab013.htm
\[removed by moderator\]
thanks
mrutyun^
Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM
‎2008 Aug 06 12:40 PM