KOMK is a structure, so wont be accessed from database but from memory of a program, also during the creation of the Sales Order I hope you didn't expect to find information on this order already in database?
You could look for 'user exit sales order SD' in SAP on line documentation and/or ask an Abaper to look for text 'KOMK' and other pricing structures in Include MV45AFZZ and then read carrefully the forms descriptions. (NB: There are also already many discussions/threads/documents on this in the forum)
Hi Arturo,
"When I activated the formula, the line 47 Result in an ABAP Dump, saying the "KOMK" is not defined in ABAP Dictionary as a table, projection view, or database view."
In error itself, it is clear that KOMK is not a table.
"How can I get those fields during the Sales Order Creation and use in a Pricing Formula?"
If you are writing the code sales order creation exit, you can read the values from the structure(ex: XVBAK/XVBAP) or internal table(XKOMP[]).
Regards
Rajkumar Narasimman
Can you explain what is the Business requirement for which, you were trying this ?
Add comment