Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XD99 and Batch input

thierryricard
Explorer
0 Kudos

Hello,

I did a program for duplicate customer.

I try to use the XD99.

It's ok when i execute the transaction XD99 but when i do it in a program, the save it's not ok

Do you have an idea ?

Thank you.

Thierry

...
CLEAR wa_bdcdata.
wa_bdcdata-program = 'SAPMMSDL'.
wa_bdcdata-dynpro   = '0200'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO bdcdata.
...
CALL TRANSACTION 'XD99' USING bdcdata
              UPDATE 'S'
              MODE 'A'
              MESSAGES INTO messtab. 
1 ACCEPTED SOLUTION

thierryricard
Explorer
0 Kudos

Hello,

I try to use XD01 instead of XD99.

It'is ok for recopy/create customer in new society with an other client from reference.

Thierry

5 REPLIES 5

Sandra_Rossi
Active Contributor
0 Kudos

Be careful, your code is full of <br>.

Correctly formatted:

...
        CLEAR wa_bdcdata.
        wa_bdcdata-program = 'SAPMMSDL'.
        wa_bdcdata-dynpro   = '0200'.
        wa_bdcdata-dynbegin = 'X'.
        APPEND wa_bdcdata TO bdcdata.
...
        CALL TRANSACTION 'XD99' USING bdcdata
              UPDATE 'S'
              MODE 'A'
              MESSAGES INTO messtab.

Sandra_Rossi
Active Contributor
0 Kudos

There can be lots of reasons. Please post more information, like SY-SUBRC value and messages after CALL TRANSACTION.

thierryricard
Explorer
0 Kudos

Hello,

the SY-SUBRC is 0.

I think the problem is in my call and the comit work in I_MASS_SAVE_DATA.

Perhaps is not the good solution on what to do.

the demand is to recopy client on society on other at a date of knb1.

I m going to try to use XD01 with model.

Thierry

thierryricard
Explorer
0 Kudos

Hello,

I try to use XD01 instead of XD99.

It'is ok for recopy/create customer in new society with an other client from reference.

Thierry

Sandra_Rossi
Active Contributor
0 Kudos

What are the messages?

As you are talking about COMMIT WORK, you need to know that batch input stops by default at the first COMMIT WORK. You can change it to not stop, via OPTIONS FROM ctu_params (component RACOMMIT = 'X' ).