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: 

BAPI_GOODSMVT_CREATE

Former Member
0 Kudos

Hi Friends,

I am using the bapi ' BAPI_GOODSMVT_CREATE' to transfer posting in MIGO. The BAPI is running fine.But when i am giving BACK posting date(BUDAT) and BACK documnet date ,the system giving error. but when i am entering manually in MIGO ,the system allowing back date and documnet is geting posted.Please suggest how can i achive this.

Thanks,

Suresh Bheema

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Suresh,

Can you please use the below code.

DATA WA_DATE(10)

WRITE IT_HEAD-BUDAT TO WA_DATE.

Please let me know if you are facing issue.

Regards,

Vadamalai A

4 REPLIES 4

Former Member
0 Kudos

What error you are receiving when you call the BAPI BAPI_GOODSMVT_CREATE?

OR you may try to change the date format, I mean before calling the BAPI please use the below code

data WA_BUDAT(10).

WRITE BSEG-BUDAT TO WA_BUDAT.

Please let us know if you are facing issue still.

Regards,

Vadamalai A.

0 Kudos

Thanks for reply,

I am using the below code for posting date and document date.I am getting the error system generated error "Please enter the correct posting date".

       CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'

         EXPORTING

           DATE_EXTERNAL       = IT_HEAD-BUDAT

           ACCEPT_INITIAL_DATE = 'X'

         IMPORTING

           DATE_INTERNAL       = HEADER-PSTNG_DATE.

     

       CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'

         EXPORTING

           DATE_EXTERNAL       = IT_HEAD-BLDAT

           ACCEPT_INITIAL_DATE = 'X'

         IMPORTING

           DATE_INTERNAL       = HEADER-DOC_DATE.

0 Kudos

Well there is no use giving both dates as back dates.

Posting date is use to determine the actual document posting pate. Recommended to use it as system date (sy-datum) for tracking purpose.

(Lets say suppose you want to track people who posted late after period closing.)

You can keep document date in past for the sake of making them visible to previous posting period, keeping posting date as current.

Former Member
0 Kudos

Hi Suresh,

Can you please use the below code.

DATA WA_DATE(10)

WRITE IT_HEAD-BUDAT TO WA_DATE.

Please let me know if you are facing issue.

Regards,

Vadamalai A