2010 Dec 22 3:55 AM
Hi experts,
i am working on Dunning form and my requirment is generate unique number and print it to the Our Reference field. i know that how to generate the unique number through number range object.
But the point is where should i write that code that call the function module after clicking on the application toolbar Print option.
that is on top of the screen
please give me some idea....
i m waiting for the ur valuable idea....
2010 Dec 22 4:12 AM
Hi Ashu,
You can create a subroutine and write form in it. This form...endform will contain your code. Then to call this form , add perform in your main window of script which is getting called.
E.g :-
/: DEFINE &W_BUKRS& = &T001-BUKRS&
/: PERFORM F_VALIDATE_COUNTRY IN PROGRAM <SUBROUTINE_NAME>
/: USING &W_LAND1&
/: CHANGING &W_LAND1&
Thanks,
Rupali Punekar
2010 Dec 22 4:12 AM
Hi Ashu,
You can create a subroutine and write form in it. This form...endform will contain your code. Then to call this form , add perform in your main window of script which is getting called.
E.g :-
/: DEFINE &W_BUKRS& = &T001-BUKRS&
/: PERFORM F_VALIDATE_COUNTRY IN PROGRAM <SUBROUTINE_NAME>
/: USING &W_LAND1&
/: CHANGING &W_LAND1&
Thanks,
Rupali Punekar
2010 Dec 22 4:33 AM
Hello,
goto SMOD tcode gave the F150D001 and display and components double click on the EXIT_SAPF150D_001double click on inculde INCLUDE ZX150U01 then a yellow color message will dusplay then press enter there you can write the code .
I hope this will help you try it.
thanks,
santhosh R
2010 Dec 22 8:21 AM
Hi,
Also, you have BTE available to try it. See Note 156985 - Reference Note: BTE for dunning.
Regards
Eduardo