2023 Jul 11 10:55 AM
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.
2023 Jul 11 1:55 PM
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
2023 Jul 11 12:49 PM
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.
2023 Jul 11 12:51 PM
There can be lots of reasons. Please post more information, like SY-SUBRC value and messages after CALL TRANSACTION.
2023 Jul 11 12:56 PM
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
2023 Jul 11 1:55 PM
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
2023 Jul 12 8:58 AM
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' ).