2022 Nov 01 7:59 PM
I am struggling with creating component's long text during component creation using BAPI_ALM_ORDER_MAINTAIN. If the component already exists and I try to add the long text then my code works fine. If I try to add long text at the point of creation of the component - it doesn't.
I believe the issue lies somewhere with the reservation number. If the component already exists, so does the reservation number and adding the long text works fine. What should I pass when the reservation number doesn't exist yet?
My parameters look as below:
IT_METHODS:
IT_TEXT
IT_TEXT_LINE
Components are created fine but the long text doesn't exist. If I then edit the component after being saved, and add long text, it works fine.
Not sure if there is a temp number for reservation number?
Thank you,
Radek
2022 Nov 01 8:25 PM
Why don't you try using both ways by backing up the code, anything you will have an original copy, and you will be able to verify through the tests which would be the best solution!!!
2022 Nov 03 7:22 AM
I had a similar issue with sales orders: I couldn't save item conditions unless the items were already created, which meant a first pass to create header and items and a second one to add the pricing conditions. I looked up my code samples but unfortunately I do not have a corresponding case for ALM.
2022 Nov 03 3:16 PM
Did you find threads such as Upload Order Operation's component long text