on 04-21-2008 11:30 AM
Hi all!
I am preparing a smartform showing the schedule deliveries of purchase orders of all vendors within a specified period. A new spool request is to be generated for each vendor's schedule deliveries. How can I raise a new spool request when the vendor no. is changed? Is it possible? If yes,please suggest.
Edited by: Jayasri P. on Apr 21, 2008 12:31 PM
you will have to call the smartform separatley for each vendor
and then set tdnewid = 'X'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nehal!
I have maintained this field in the middle of SSF_FUNCTION_MODULE_NAME and fm_name(of type RS38L_FNAM) in my program and I kept these two function modules in a loop of table which has no. of vendors.When I execute this report, only it' s showing data for one vendor,when I come back it's showing data for 2nd vendor , next 3rd vendor. Even though I commented the code tdnewid = 'X',the same output I am getting.Then what's the use of this parameter? can't I get the output with one execution with as many no. of spool requests as the vendors I have in my table without moving back for each vendor?
Hi Nehal!
Where do I mention tdnewid = 'X' exactly in program? I have writen this line after I called SSF_FUNCTION_MODULE_NAME.It's not generating multiple spool requests.It's not working even I kept it before calling that function module. I have to generate PDF documents from these spool requests .So ,I need individual spool requests for each vendor.
Hi Nehal!
I have passed the parameter of type SSFCRESCL in the function module fm_name(i.e. 2nd f.module in my program).But it's throwing a dump when executing saying that parameter of specified type doesn't allow to pass through this function module an it allows only fields of a particular type .What is the type of LS_COMPOSER?
I have declared the variable as : LS_COMPOSER TYPE SSFCRESCL .
LS_COMPOSER-TDNEWID = 'X'.
CALL FUNCTION FM_NAME
Exporting
t_lfa1 = t_lfa1
OUTPUT_OPTIONS = LS_COMPOSER
TABLES
it_ekko =it_ekko
it_ekpo = it_ekpo
it_eket = it_eket.
What's going wrong with this?
Hi Jayasri, 1. Loop and Call Smartform function module for every Vendor . 2. When you Smartform function module not SSF_FUNCTION* , you will get OUTPUT_OPTIONS exporting parameter. In that u have TDNEWID field. You have to set 'X'. It will generate each time new spool request. Regards, Venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.