12-30-2013 2:39 PM
Hi,
Currently we are working with the ME31K transaction to create a Purchasing Contract in the system.
The Contract is created using the CALL TRANSACTION; when I run the CALL TRANSACTION I can see the value of Net Price in Purchasing Document(NETPR) flowing into screen field. However at the end of the transaction when I check the purchasing document in ME33K, the value for NETPR is 0.00.
Can you please tell me what is happening here?? I need to update the net price(NETPR) which is not happening here....
Please see the screen-shots:
Regards
Tanmoy
12-30-2013 2:46 PM
Hi Tanmoy
If you go directly to ME31K whatdoes the processing do.Any particular reason for not using BAPI_CONTRACT_CREATE??
nabheet
12-30-2013 4:25 PM
First of all, the design flow of the z program goes like this as described below:
1. The program uses the OPEN DATASET, TRANSFER & CLOSE DATASET to place the files in the application server.
2. An IDOC triggering mechanism is used to trigger inbound idocs to create the purchasing contract.
3. The process code triggers a z function module (copy of standard function module) that creates the contract using CALL TRANSACTION.
4. I am supporting the code to fix these issues; no specific reason why the BAPI is not used.
How does the net price of the purchasing contract gets determined? When I run the CALL TRANSACTION in foreground I can see non zero value is getting populated to said screen field. After the execution is complete; i run the ME33K to validate the data and I see that the actual value updated against net price is zero. I am not sure about the test data they have given to the developers hence I want to know how does the net price of a purchasing contract gets determined?
Regards,
Tanmoy
12-30-2013 5:02 PM
Tanmoy
If you look closely at the screen shot net price is zero because net quantity has become zero. Do you het any warning messages in foreground please check
Nabheet
12-30-2013 5:22 PM
HI,
I have tried with some target quantities having a non zero value, then also the net price is coming zero.
BR
Tanmoy
12-30-2013 5:38 PM
When you save the target quantity gets saved or it becomes zero. I believe both of them are linked
12-31-2013 12:28 PM
Hi Madan,
Thanks for all your replies...I can now update the net price.... I think it was a data issue that caused all the problems. I manually changed the data & posted the purchasing contract in SAP.
Regards,
Tanmoy