Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Net Price is not updating ME31K

Former Member
0 Kudos

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

6 REPLIES 6

nabheetscn
Active Contributor
0 Kudos

Hi Tanmoy

If you go directly to ME31K whatdoes the processing do.Any particular reason for not using BAPI_CONTRACT_CREATE??

nabheet

0 Kudos

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

0 Kudos

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

0 Kudos

HI,

I have tried with some target quantities having a non zero value, then also the net price is coming zero.

BR

Tanmoy

0 Kudos

When you save the target quantity gets saved or it becomes zero. I believe both of them are linked

0 Kudos


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