on 02-06-2013 10:31 PM
Hi Experts,
I am trying to modify the idoc for our order confirmations and invoices. I am modifying SAPLVEDC include LVEDCFOF to fromat the price rate in either cases or lbs depending on customer rquirements. When I debug the code, I am getting exactly what I expect in the modifications, but after adding the code I get an error at these lines
MOVE e1edp05 TO int_edidd-sdata.
APPEND int_edidd.
In my modification I look at ikomvd and depending on needs, either convert kbetr to cases or lbs and change kmein to the corresponding value. I then modify the line of ikomvd. After that form fill_e1edp05 is called and populates structure e1edp05 with the ikomvd data. That structure is then moved to
int_edidd-sdata and the error occurs at the above append line.
An example of the original and changed lines if int_edidd-sdata are:
Original Line:
+ Gross Value 109.92 218.67 100 LBS USD
Modified Line:
+ Gross Value 109.92 10.09 1 CS USD
The error does not happen when I debug through RSNAST00, but when creating a sales order. The system actually says that it has created sales order 123456, but when going to va02 it says the order does not exist. Is there some sort of check against the idoc that throws an error if it does not match the sales order or condition record values exactly, or is there some other reason why we cannot format the data differently on the idoc than how it is entered into the system?
Any help is greatly apppreciated.
This problem is solved. Upon debugging, I set a breakpoint earlier in processsing and found that the code had been placed in a loop and was trying to change the value of a field, which resulted in an infinite loop tha caused a memory overflow exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.