Skip to Content
author's profile photo
Former Member

Doubt on Good movements using BAPI'S for Uploading

Hi Experts,

i am doing a bdc program to upload for mb1a transaction using BAPI..I am new to BAPI area..But with some reference i have finished the program..But i dont know why in clear statement and in gui upload showing error..IN gui upload when i activate the exception its throwing error..Hereby i am pasting the code...Any idea pls share with me..

<removed by moderator>

I dont know how to make the code show correctly...any help???????

Regards

Karthick

Moderator message: please post only relevant code parts, observe the maximum of 5000 characters per post to preserve formatting, leave out commented lines, etc.

Edited by: Thomas Zloch on Feb 10, 2011 6:05 PM

sorry moderator...it will not happen again..

my scenario is like this i ahve to upload the serial number with respect to the quantity in unit of measure..i am not getting any idea on this..for example if the quantity for the material is 5 then it has to upload five serial numbers...

please help me on this!!!!!!!!

regards

Karthick

Edited by: karthicksap on Feb 12, 2011 5:25 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Feb 15, 2011 at 02:27 PM

    Hi,

    Get the quantity from user.

    parameters: quantity type i.

    itab will have all values.

    loop at itab into wa_tab where wa_tab-serial <= quantity.

    Upload procedure.

    endloop.

    Hope it will help you.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      actually user dnt give any input

      my doubt is that i have declared internal table with the specified fields..

      but the serial number may be 5 sometimes and 1000 sometimes like that it wil go..

      but the structure has only one serial number..then how to do that?

  • author's profile photo
    Former Member
    Posted on Feb 15, 2011 at 02:53 PM

    >

    > i am doing a bdc program to upload for mb1a transaction using BAPI..I am new to BAPI area..But with some reference i have finished the program..But i dont know why in clear statement and in gui upload showing error..IN gui upload when i activate >

    Could you be more clear about the requirement? Are you writing BDC for MB1A transaction or you using GOODSMVT* BAPI to Post goods movement?

    If you are using the BAPI_GOODSMVT_CREATE, there is a tables parameter "GOODSMVT_SERIALNUMBER" that you can fill for serial numbers...As per the BAPI's documentation

    If the XSAUT indicator is set in the table parameter GoodsmvtItem, the system automatically determines the serial numbers for an item.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kris,

      I have tried with one material also,at that time also its giving "MAINTAIN SERIAL NUMBER FOR TOTAL QUANTITY"

      Checked with MIGO ,its working correctly ..

      i am not able to fix what kind of error is that.checked with debugger also when its coming to final stage its returning error.datas r correctly moved with corresponding tables also...

      pls help me out..

      Regards

      Karthick.

      PROBLEM RESOLVED....THANKS ALL FOR THE VALUABLE INFORMATION...

      Edited by: karthicksap on May 5, 2011 11:17 AM

  • author's profile photo
    Former Member
    Posted on May 05, 2011 at 09:38 AM

    Any doubts post on this thread regarding bapi for mb1a

    Add comment
    10|10000 characters needed characters exceeded