on 02-01-2014 4:08 PM
Hi,
Iam working as SAP SRM ABAP Consultant, we got a requirement in SAP GTM.
In SRM contract will be created and transferred to GTM(ECC) as 2 sided pre trading contract, after release in GTM then it will transfer to OpCO(ECC).
Now the requirement is when purchase price is changed in SRM it is getting transferred to GTM, but from GTM it is not recalculating the sales price to send the sales price to OpCO(ECC).
we need to recalculate the sales price again in GTM so that it can send updated sales price to OpCO(ECC).
Can you please give inputs whether the above requirement can be achieved through WB25. if so can you please provide the brief functionality about WB25.
Hi shankar123 shiv,
IMHO the way to trigger a recalculation of the price depends on the technique you have chosen to create and update the GTM contract. It could be done using purely BTCI.
Another way could be using a BAPI. If the pricing will be recalculated depends on the change of fields, which you can define in the GTM customizing (TA WB2B_CUS->Pricing->Maintain Price Change Group).
To update the related purchase and sales order you have to release the GTM contract again. This can be done by BTCI, BAPI or FM.
I hope I could help you with my quick answer.
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
Thank you for the response.
I need to develop the report similar to WB25, as WB25 doesnt have badi to add the selection screen fields. in the new report i need to calculate the sales price by fetching the margin values from Z-tables. calculated sales price (new purchasing price + margin in the Z-table) needs to display in the ALV grid (similar to WB25 output ALV grid adding two more columns), and also i should provide the Execute button in the output gird which not present in the WB25
User will select the rows in the ALV grid and click the execute button, then newly calculated sales prices should replace with initially created sales price in the pre-trading contract.
Can you please let me know the bapi/FM which can be used to save/replace the sales prices.
Dear shankar123,
the BAPI to create a contract is BAPI_TRADINGCONTRACT_CREATE, to change it is BAPI_TRADINGCONTRACT_CHANGE. After you have created resp. changed the contract you must release it in order to transfer the data to the following documents. The BAPI for releasing is BAPI_TRADINGCONTRACT_RELEASE.
If you go to transaction BAPI you also find BAPIs for reporting. They might help you in building your own report.
If you prefer an object oriented approach you can also use the following classes to work with contracts:
Peter
Hi Peter,
Thankyou for Quick response.
As iam new to GTM, Can you please provide more details about other option GTM customizing (TA WB2B_CUS->Pricing-Maintain Price Change Group). which you have specified in your previous reply.
How it works. in our case purchasing price will be changed in SRM after pre-trading contract released in GTM (which is already transfered to opcos).
After price is changed in srm it will transfer to GTM then what is status of the pre-trading contract in GTM?
To customize maintain price change group on what table and fields do we need to customize?
do we need to manually release the pre-trading contract again?
Can you please clarify the above the questions.
Dear shankar123,
I am very sorry, but to explain GTM in detail and find a specific solution for your requirements goes beyond what is possible in such a forum. Please contact your GTM consultant who is responsible for your GTM implementation.
If you would like to try remote consulting from my person, please send my a private message with your contact data.
Thank you for your understanding,
Peter
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.