a week ago
Hello,
One of our condition contracts involve using product hierarchy 2 as a key field (Both for determination of business volume as well as pricing condition) . Since the volume is high, we wrote a program to upload the data using BAPI_CONDITION_CONTRACT_CREATE. We are able to create the condition contract and settle it manually. But the upload program using BAPI does not work, due to PRODH2 not being a key SAP field . I end up with an error to update the key field product hierarchy 2 (W_CB 064). We tried extending BAPI_TE_KOMG with PRODH2 . But the error continues. Any help from the experts is welcome.
Request clarification before answering.
Hello,
What version of S/4HANA are you running?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
If you need to use BAPI_CONDITION_CONTRACT_CREATE to create condition contracts and populate rates in a condition table which has PRODH2 as a field, you need to populate conditionkeydatain-prod_hier2. You need the following populated:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Structure BAPICCCONDITIONKEY has fields PROD_HIER1, PROD_HIER2 and PROD_HIER3. It also has the full hierarchy field PROD_HIER. Check the screenshot. We have successfully created a load program using BAPI_CONDITION_CONTRACT_CREATE and were able to upload condition tables which have various levels of the product hierarchy.
Thanks
User | Count |
---|---|
94 | |
11 | |
10 | |
10 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.