on 2005 Nov 09 1:22 PM
Hi!
When I create a call transaction into a method the system put in the screen one value only but I have two values that I want to put into the screen.
For example:
DATA: BDC_LINE TYPE BDCDATA.
DATA: BDC_TAB TYPE table of BDCDATA.
clear bdc_tab.
BDC_LINE-FNAM = 'KPP0B-VALUE(01)'.
BDC_LINE-FVAL = '1'.
APPEND BDC_LINE TO BDC_TAB.
BDC_LINE-FNAM = 'KPP0B-VALUE(02)'.
BDC_LINE-FVAL = '2'.
APPEND bdc_line to BDC_TAB.
CALL TRANSACTION 'KP06' USING bdc_tab
MODE 'A'
UPDATE 'S'.
I need a loop or what?
Thanks!!
Shravan,
I can't do that because I'm writing the code into a method in a server proxy and the code have to be object oriented. But the transaction is good for a report.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The bestway is to use SHDB transaction -> New recording
New record = <ANY NAME>
Transcation = KP06
Click on <b>Start Recording</b>
The KP06 screen appears and input your values and whatever you want. After completing the transaction you will be back in SHDB Recorder screen, DO NOT FORGET TO SAVE this.
Then Go back to the first screen select the recording you have created, Click on program name and check radio button <b>Transfer from recording</b>.
This will create a program for you and use that or copy the code.
regards
Shravan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Martin I haved, this is:
BDC_LINE-PROGRAM = 'SAPLKPP0'.
BDC_LINE-DYNPRO = '1000'.
BDC_LINE-DYNBEGIN = 'X'.
APPEND BDC_LINE TO BDC_TAB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Firstly, nice SAP XI question. Secondly you are missing the program name, screen number from the BDCDATA.
Thanks
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.