cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with a call transaction

Former Member
0 Kudos

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!!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Create a program just to get the BDC sequence into your method. Execute it in your ABAP program and when you know it is working, copy the code and paste it in your method.

regards

Shravan

Former Member
0 Kudos

Hi,

Add the BDC code into a separate program or function module. From your proxy method, call this program or function module. This is usually the approach if the proxy needs large pieces of code.

If the thread helped you, please award the points and close the thread.

Bhanu

Former Member
0 Kudos

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

Former Member
0 Kudos

In KP06, you also may have to code for the correct settings: The Menus are: Extras -> Set Controlling Area and Settings -> Set Planner Profile.

Also, please check the Settings -> User Settings.

Good luck,

Bhanu

Former Member
0 Kudos

Martin I haved, this is:

BDC_LINE-PROGRAM = 'SAPLKPP0'.

BDC_LINE-DYNPRO = '1000'.

BDC_LINE-DYNBEGIN = 'X'.

APPEND BDC_LINE TO BDC_TAB.

Former Member
0 Kudos

Firstly, nice SAP XI question. Secondly you are missing the program name, screen number from the BDCDATA.

Thanks

Martin