Skip to Content
author's profile photo Former Member
Former Member

BAPI_GOODSMVT_CANCEL Error when called from JAVA RFC

Dear Experts,

I'm Facing exception error while calling the FM BAPI_GOODSMVT_CANCEL from Java through RFC..

i have tried debugging with the same material document number and year as imports manually through SAP its working fine and resulting the cancellation document number.

while debugging this FM it is calling the following FM's sequentially..

1) MAP2I_B2017_GM_ITEM_04_TO_CANC

2) SERIALPROFILE_CHECK------------------------------Here in this FM exception is coming

3) mb_cancel_goods_movement

but when i pass the same through the java it's throwing exception...

can anyone suggest are they having any prerequisites while this FM calling from JAVA...

Thanks in Advance ..Help me out..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 28, 2012 at 08:58 AM

    Hi,

    Are you passing Material document number with leading zeros?Please paste part of java code here.

    Thanks

    Naresh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Naresh,,

      Material document number is coming with 10 chars..

      my issue got solved... DATE format which is passed, is in invalid format.. i have corrected it and its wrking fine...

      Thanq very much for ur Support...

  • Posted on Jun 28, 2012 at 09:00 AM

    Do you maintain, Serial number for the Items.

    In BAPI do you pass the serial numbers for those item..

    What do you pass in : GOODSMVT_MATDOCITEM

    Do not pass anything here.. (if you want to cancel all the items of the material document)

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Venkateswaran,

      We are not maintaining serial number for the items ..

      i've passed only row item count as in GR like 1,2,..

      for GOODSMVT_MATDOCITEM i passed the same as above

      i need to cancel only one item so i'm giving the item number..

      Thanq very much for ur Support...

      my issue got solved... DATE format which is passed is in invalid format.. i have corrected it and its wrking fine...

      Regards,

      Prakash

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.