‎2012 Sep 14 8:19 AM
Hello!
I have the following problem. We have a program , where we can input the production date for a GR. Basically, this program is creating a GR document.
The problem is, that at the end, in the material document the Production date field is empty. All the other datas, what we inputing (txt, GR qty, Batch...) is there, only this data is missing.
I was debugging the program and the functions, what it is using.
1. CALL FUNCTION 'BAPI_GOODSMVT_CREATE'.
- the program passing the HSDAT value to this function properly.
1.1 CALL FUNCTION 'BAPI_GOODSMVT_CREATE'.
- the value still ok
1.1.1 PERFORM mb_create_goods_movement
- in this function will be the HSDAT deleted.
-The imseg internal table gets the HSDAT data, after that : MOVE-CORRESPONDING imseg to mseg, so mseg gets the data.
- But later in this function :
* wird für MHD-Prüfung im MM07MMHD benötigt
dm07m-vfdat_input = imseg-vfdat.
dm07m-hsdat_input = imseg-hsdat.
* We have to clear corresponding MSEG-fields to get a material
* document with correct HSDAT/VFDAT (-> In case of transfer
* posting there should only be HSDAT/VFDAT in MSEG line with
* SHKZG='S'; not in both lines).
CLEAR: mseg-vfdat, mseg-hsdat.
This is the key point, from the description is not clear for me, that why the program clears the HSDAT value at this point. It says, that for getting the correct HSDAT/VFDAT, ok, but I was giving this value for this function, why is it not acceptable for it?
So my question is, is this a standard function in this type of HSDAT input, or it is some bug? If this is a standard function, in this case, how can I input the HSDAT value in my program, to pass it to the Material document at the end?
Thank You
‎2013 Feb 26 8:18 AM
Hi Roland,
we have exactly the same problem and we are still not able to find a solution.
Did you suceed ? di d you get a solution ?
If Yes, thank to share this xwith us .
regards