2008 Oct 22 8:45 PM
Hi Gurus , I am working on an upgrade to ECC 6.0 from 4.6c . One custom program uses BAPI_SHIPMENT_CREATE and it always fails . I found that within the BAPI , there are calls to other function modules , one of them being V51P_FIND_HEADER and in this there is a check statement :
CHECK NOT is_vekp IS INITIAL. .This statement should fail in case the structure is_vekp is initial, however it never fails and the program moves on with out exiting. I have checked the structure and it is empty , how can I fix this.
2008 Oct 22 9:36 PM
Hi,
Then one of the fields of the structure must be populated..
Checked in the debugging of both your sessions...test program and the bapi...
check what is different in the bapi to make the condition true...
Thanks
Naren
Hi Gurus , I am working on an upgrade to ECC 6.0 from 4.6c . One custom program uses BAPI_SHIPMENT_CREATE and it always fails . I found that within the BAPI , there are calls to other function modules , one of them being V51P_FIND_HEADER and in this there is a check statement :
CHECK NOT is_vekp IS INITIAL. .This statement should fail in case the structure is_vekp is initial, however it never fails and the program moves on with out exiting. I have checked the structure and it is empty , how can I fix this.
2008 Oct 22 9:11 PM
if you are debugging correctly and seeign the issue, open a ticket with OSS, and let it checked by SAP Development
2008 Oct 22 9:23 PM
Hi,
Make sure if any of the field in the structure is_vekp is populated...
Do one thing. write a small program..declare the same structure as of IS_VEKP.
Don't populate anything...
And then add the check statement as in the sap program...
find out what's happening in the debugging..
Thanks
Naren
2008 Oct 22 9:34 PM
Hi Naren , I tried exactly what you suggest , and the everything works on a test program , It is only when I call the Bapi even in my test program , this problem starts to happen.
2008 Oct 22 9:36 PM
Hi,
Then one of the fields of the structure must be populated..
Checked in the debugging of both your sessions...test program and the bapi...
check what is different in the bapi to make the condition true...
Thanks
Naren
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |