How can I determine the values assigned to a domain?
If you wish to determine the fixed values of a domain through a program.
You can get the domain values from DD07L and the value texts from DD07T.
In the bapi, BAPI_SALESORDER_CHANGE, the required fields are the Sales
Doc number(vbeln), vkorg, vtweg and spart. These values have to be filled
in the ORDER_HEADER_IN structure along with the fields you want to change.
Then in the structure ORDER_HEADER_INX, fill in(U - for update) the first
field to say you want to update the document, and then check(X) the field
you want to change. The new data needs to be specified in the ORDER_HEADER_IN
structure. This should work fine. For some reason, if you have it still
doesnt work, go to SE37, put in the BAPI, hit the 'Single Test', fill in
the corresponding values and test/retest till it works... you'll figure
it out soon. Only issue might be, the BAPI will not create the required
change in the Document because the BAPI_SALESORDER_CHANGE does not have
a commit statement. So, you might have to create a test Sequence by first
running BAPI_SALESORDER_CHANGE and then
BAPI_TRANSACTION_COMMIT. this should work.
| Beam Back -> ABAP Cafe for Abapers |