2005 Dec 22 12:24 PM
Hello,
i have a newbie question :). I need to submit cv04n transaction from my program with some preffiled values. I am used to use SUBMIT command with report name but with cv04n i dont know that name (or i wasnt able to find it ). So is it possible to call this transaction with submit or should i use another command(and has this commant opportunity to preffill some values?)?
thanks
Jiri
2005 Dec 22 12:53 PM
Hi populate the bdcdata internal table data and then call the transaction using
CALL TRANSACTION.............
satish
2005 Dec 22 12:28 PM
You can use a Call transaction statement. You can use call transaction CV04N to call this transaction.
2005 Dec 22 12:30 PM
2005 Dec 22 12:33 PM
Hi Jiri,
1. Submit won't work with this.
2. bcos the program for this tcode is
SAPLCV100 (use se93 to find it out)
and its not of type 1 (online program)
3. Instead u must use
CALL TRANSACTION USING BDCTABLE.
(see help on syntax)
4. otherwise it will give this run time error.
SUBMIT_WRONG_TYPE
I hope it helps.
regards,
amit m.
2005 Dec 22 12:46 PM
if you are using for some BDC kind of stuff, then
use call transaction.
DATA: BDCDATA TYPE TABLE OF BDCDATA.
DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
DATA: PROGRAM LIKE SY-REPID,
WA_BDCDATA TYPE BDCDATA.
WA_BDCDATA-PROGRAM = 'SAPMS38M'.
WA_BDCDATA-DYNPRO = '0100'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = 'RS38M-PROGRAMM'.
WA_BDCDATA-FVAL = PROGRAM.
APPEND WA_BDCDATA TO BDCDATA.
...
CALL TRANSACTION 'SE38' USING BDCDATA MODE 'N'
MESSAGES INTO ITAB.
2005 Dec 22 12:53 PM
Hi populate the bdcdata internal table data and then call the transaction using
CALL TRANSACTION.............
satish
2005 Dec 22 12:54 PM
As already pointed out by others use Call transaction statement passing the bdc table.
Please note that the mode should be 'E' though.
call transaction 'CV04N' with t_bdcdata
mode 'E'.
2005 Dec 22 2:34 PM
Hi,
Let us know if you are writing a BDC program for CV04N transaction or you want call this transaction from your program and want the user to navigate in the transaction.
In former case you can do what is suggested by other members in this thread. In the later case you have to use SET MEMORY ID for CV04N Transaction initial screen mandatory fields and use call transaction and skip initial screen.
Let us know what is your requirement.
Regards,
Ramesh.
2006 Jan 03 2:43 PM
Hello,
thanks for all answers.
I would like to call transaction from my program and prefill some parameters, execute the search and then let the user navigate in the transaction.
I can prefill some parameters from bdctable but i dont know how can i start that transaction-is it possible from bdcdata?
And next question: Can i use selection variants(there is few variants and i would like to make for each variant one report and submit that variant automatically)
i hope it is more clear now
thnaks
2006 Jan 04 1:22 PM
Use Submir report statement with '... USING SELECTION-SET variant ' addition..
Heres the documentation.
USING-SELECTION-SET supplies all the selection screen components by means of a Variante variant. If you specify USING-SELECTION-SETS OF PROGRAM , you can use a variant from a different program; if you specify WITH SELECTION-TABLE, values for several selection screen components are transferred as the content of an internal table rspar; WITH sel value supplies individual selection screen components sel with values value. The addition WITH FREE SELECTIONS allows you to transfer dynamic selections to the selection screen for a logical database.
Addition 1
... USING SELECTION-SET variant
Effect
If you specify this edition, the parameters and selection criteria for the selection screen are supplied with values from a variant. For variant, you must specify a character-like data object that contains the name of a variant for the program accessed when the statement is executed. If the variant does not exist, the system sends an error message. If the variant belongs to a different selection screen, it is ignored.
Note
You can create and manage variants for every program in which selection screens are defined, either in the ABAP Workbench or during execution of the program by choosing Goto - Variants on a selection screen.
Regards,
Ravi
2006 Jan 04 1:46 PM
But i dont know the report, i know only transaction code...plz look at the cv04n
thnaks
2006 Jan 04 1:50 PM
Hi Jiri,
I'm sorry..That is not a Report program..YOu cannot use Submit report statement for Module Pool Programs..
Regards,
ravi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |