BAPI to get inbound delivery from material serial number

BAPI to get inbound delivery number from material serial number?
input---material serial number.
output--inbound delivery number.

Perhaps instead of using a BAPI you can code it like this.
DATA:serial(10) TYPE n VALUE '0000340078',
pos TYPE i VALUE 1.
START-OF-SELECTION.
  WHILE pos <= 10 AND serial+pos(1) = 0.
    pos = pos + 1.
  ENDWHILE.
  REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
  WRITE serial.

Similar Messages

  • BAPI to remove leading zeros from the serial number

    Hi All ,
    plz can anybody suggest me the alternative BAPI for 'BAPI_SERVNOT_MODIFY_DATA ',whose function is to delete the leading zeros,from the serial number.
    Thanks.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • Get inbound delivery number by using material serial number

    is anyfuction module to get inbound delivery number by using material serial number?
    input---material serial number.
    output--inbound delivery number.

    Hi,
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_GOODSMVT_CREATE
    it's ok with the Function module
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
    VBKOK_WA = LWA_VBKOK
    SYNCHRON = ' '
    NO_MESSAGES_UPDATE = ' '
    COMMIT = 'X'
    DELIVERY = P_ITEM-VBELN
    IT_SERNR_UPDATE = LT_SERIALS
    IMPORTING
    EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
    <b>Reward points</b>
    Regards

  • Function Module / BAPI for Inbound Delivery from Purchase Order

    Hi,
    I need to create an inbound delivery from Purchase Order items and am looking out for some Function Module or BAPI for the same.
    The requirement is that i should be able to specify selected line items from PO for delivery.
    I tried the BDC method for VL31N , but the particular item selection is problem, since by default it shows all the items of PO and i want only selected items.
    Do reply.
    Thanks in advance.

    check these and their documentations.
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries
    Regards
    Prabhu

  • Inbound Delivery from PGI

    Hi SAP Gurus,
    We are using two step STO process. I want to make Inbound delivery at the recieving plant from the Outbound delivery at the Issuing plant after PGI is done. What I understand is that we need to have ASN implemented to do so. Is there any other way available in standard SAP to do so?
    Please tell.
    Thanks
    Manav

    ASN implemented means you need to have Order Acknowledgment from the Vendor which we are not using in our system. This is IS Retail system and we are using STO between DC and Stores. The problem we are facing is when DC issues less material than what is in STO, Inbound delivery does not get updated for the same qty at Store. So the person who is recieving material expects qty mentioned in Inbound delivery but physically recieves less. So that creates problem as he tries to do GR of more material but systme does not let him do because of less qty in PGI. So now I want that system should create Inbound delivery from PGI/Outbound delivery instead of creating from STO. In this case it will be able to pull the exact qty of the material expected for GR in store.
    So I want to know how to do this.

  • Function module to get material serial number status

    Hi Gurus,
    How to get get material serial number status? Is there any function module?
    TCode IQ03 to display the serial number staus, but where i can find the status (AVLB / ESTO / ECUS) of these serial number ?
    Pls help.
    Regards,
    Sankaran

    hi,
    SELECT SINGLE  equnr objnr FROM
                               equi INTO (equnr1 , objnr1)
                               WHERE sernr = wa_final-sernr
                                 AND matnr = wa_final-matnr.
        CALL FUNCTION 'STATUS_TEXT_EDIT'
          EXPORTING
            client           = sy-mandt
            flg_user_stat    = 'X'
            objnr            = objnr1
            spras            = sy-langu
            bypass_buffer    = 'X'
          IMPORTING
            line             = sttxt
          EXCEPTIONS
            object_not_found = 1
            OTHERS           = 2.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Regards
    siva

  • How to get inbound delivery number according to materail document number

    Our business scenario:
    1) ME21N, to create NB purchasing document
    2) VL31N, to create inbound delivery based on NB purchasing document
    3) MIGO, to receive the material to storage location based on inbound delivery, then materail document number will be generaated.
    My question is that how shall I find the original inbound delivery based on the materail document number? Thanks very much.
    King qi
    2008-08-21

    Sridhar,
       Yes, you can find inbound delivery in confirmation tab, and GR material document in PO history, but still can not find the matching relattionship between inbound delivery and GR material document.
    For example
    PO             inbound delivery/qty     GR material  document/qty
    450000690      6900001/100             5000001/40
                          6900001/100             5000004/60
                          6900003/80               5000008/70
    this is my simulation for the matching relattionship between inbound delivery and GR material document.
    in fact, this will be more complex in real world, my question is to get the original inbound delivery  based on the GR materail document number.
    thanks.

  • BAPI for VL31N (Inbound Delivery Creation

    Hi,
    My requirement is I need to write a program create a inbound delivery based on multiple Purchase orders.  Usually Inbound deliveries are created through transaction VL31N. As it is SAP njoy transaction, we can write a BDC code for this. I searched a suitable BAPI, but i found none. 
    Anyone have any idea on this ?
    Regards,
    Ganesh

    Use the below function module to create a inbound delivery with the PO number
    DATA: IS_INB_DELIVERY_HEADER LIKE BBP_INBD_L.
    IS_INB_DELIVERY_HEADER-DELIV_EXT = 12121
    IS_INB_DELIVERY_HEADER-DELIV_DATE = 08/16/2006
    DATA: T_DETAIL LIKE LIKE BBP_INBD_D OCCURS 0 WITH HEADER LINE.
    T_DETAIL-MATERIAL = 'xxx'.
    T_DETAIL-DELIV_QTY = '10.000'.
    T_DETAIL-UNIT = 'EA'.
    T_DETAIL-PO_NUMBER = '45XXXXXX.
    T_DETAIL-PO_ITEM = '000010'.
    APPEND T_DETAIL.
    DATA: T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE.
    DATA: V_VBELN TYPE VBELN_VL.
    CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
    EXPORTING
    is_inb_delivery_header = is_inb_delivery_header
    IMPORTING
    EF_DELIVERY = V_VBELN
    tables
    it_inb_delivery_detail = T_DETAIL
    return = T_RETURN
    Regards,

  • PPF: automatically Putaway WT creation after distribution of the inbound delivery from ERP

    Dear Experts,
    I'm trying to test the PPF in order to create a putaway WT for an inbound delivery in EWM-System directly after its distribution from the ERP-System.
    1. I’ve chosen the action profile (PDI_01) and did an assignment to the doc type PDI
    2. I’ve created the determination procedure to the action profile:
    3. I’ve created a condition records:
    After this I try to disribute an inbound delivery from ERP to EWM, but as after distribution as after saving of the inboun delivery nothing happens.
    Could you, guys, give some hits, what I missed and where I should define the whrehouse process type for the putaway WT?
    Thank you in advance
    BR
    Denis

    Hi Petr,
    thnaks for the help once again,
    I did some settings you and Alex proposed and now I can see than my action will be found when creating Outbound Delivery Order:
    But even I have only one condition record to my action "PDO_01_WT_CREATE" it will not be fulfilled...log says
    I also changed the GM status to NSNS...can I somehow find out which conditiontion the programm is claiming about?
    BR
    Denis

  • Creation of inbound delivery from outbound delivery

    Hi All,
    Can anybody help me, if I want to create inbound delivery from outbound delivery.
    I found this function module "SHP_IBDLV_CREATE_FROM_OBDLV". But I want handling uniits to be entered by the user.
    Thanks

    Thanks for the feedback. This question is resolved

  • While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get

    While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get to the chat. Please advise!!!!

    MoeGhazal I reviewed your account and it looks like you have have upgraded from a CS4 volume license for Design Premium to a retail upgrade of Design Premium 5.5.
    I also show that you made two purchases of CS5.5 Design Premium but the second purchase was canceled.  Please make sure you are utilizing the serial number which ends in 7886.
    If you are using the correct serial number then it is likely the installer will not recognize your volume license CS4 serial number as being valid for an upgrade.  If you can contact our support team then you can be walked through an unlocking procedure to allow you to proceed with the installation.  You can contact our support team directly at Contact Customer Care.  You may want to try installing a web browser you have not previously utilized.  It is likely a toolbar or some other software application is affecting your ability to access chat support successfully.
    If you are still unable to reach our support team then please verify the information under your account is accurate.  If you can please then update this discussion after confirming this then I can request a member of our support team contact you directly.
    Again I would recommend reaching out directly if possible as it will be the most efficient method of resolving your current error.

  • BAPI For Inbound Delivery using Purchase Order Number

    Hi All,
    Is there any BAPI for posting Inbound Delivery (VL31N) using Purchase Order as reference.
    thanks
    bobby

    Not sure what it has to do with enhancements and modifications, but there is no such BAPI:
    http://tech.groups.yahoo.com/group/ABAP/message/38307
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/bapi-for-inbound-delivery-creation-and-update-vl31n-1201265
    FYI all BAPIs may be viewed in BAPI transaction.

  • RE:BAPI for Create Material Serial Number

    Can anybody please suggest me any function module or BAPI available to Create Material Serial Number (transaction IQ04), and later Change Material Serial Number (transaction IQ02) for updating its class type, class and characteristic description?

    Hi,
    Two options for creating meters, meter serial number
    - FM: EQUIPMENT_SAVE - It is too trickly to use this FM, one has to do lot of research and should have good technical skills
    - Using BDC - simple and straigh.
    For updating class for the meter you can use FM: BAPI_OBJCL_CREATE (BDC does not work for this one). Again it is pretty complex to implement.
    For created meters, i have used both FM and BDC. Decision depends on requirement, volume and resource.
    - ASB

  • Regarding the material serial number

    Hi Experts,
    How can i get the material serial number?
    Rgds,
    Sruthi.

    Hi Shruthi,
    _Analysis_ :
    A Sale Order (EBELN) can have one or more Materials (MATNR) in its line items (POSNR).
    Each of these Materials will be used in one or more Equipments (EQUNR). The  combination would be unique and this unique combination generates a unique Serial No.
    For each Material in a Sales Order, we need to attach a u201CSerial No. Profileu201D. (These Serial No. Profiles are defined in SPRO settings).
    In a Sale Order, we can see the Serial No. for a particular Material, only if the Serial No. Profile is defined/attached.
    _To verify:_
    Goto Tcode VA03. Enter the Order no.
    In the Menu bar, go to u2013 Extras à Technical Objects : To find Sale Order No., Material, Equipment No, Serial No.
    Logic to fetch Serial No. :
    1.       Enter the Sales Order No. (VBELN) in table VBAP.
    Determine:
    ·         Materials (VBAP-MATNR) for this VBELN
    ·         Position No.( VBAP-POSNR)
    ·         Serial No. Profile (VBAP-SERAIL).
    2.       Enter the Sales Document No. (VBELN) into table SER02.
    Determine:
    ·         Object No. (OBKNR) for each Position (POSNR) of the Sale Document.
    3.    From steps 1 & 2 :
          Enter this Object No. (SER02-OBKNR) and Material (VBAP-MATNR) into table QBJK.
          Fetch the following fields:
    ·         Equipment No. (EQUNR)
    ·         Serial No. (SERNR)
    This logic actually works. I have implemented it jst a month ago.
    Hope this solves your problem.
    Rgds,
    Lakshmi

  • Material Serial Number reporting

    Hi,
    I need to create an ABAP report or potentially a BI extractor to look at material stock by functional location, with serialised materials detailed down to serial number. I can see all of the relevant information through MMBE, but need to know where the link is between the MM documents and the serial numbers, in order to show the detail down to serial number.
    Thanks

    Hi,
    Thanks for your response. This table is empty, but I think I have found the solution.
    Table SER03 holds link from material document number to an object number (SER03-OBKNR). This object number is listed in table OBJK against serial numbers, equipment numbers, and materials.
    It looks like SER07 is the table used to link Physical Inventory Documents to OBJK.
    The OBJK table holds the link table (SER07 or SER03 in this case) in field TASER.
    If anyone else has any info on this it would be useful.

Maybe you are looking for

  • Posted by Shahid Nadeem

    This section is very very great. I have a question What is a NULL value and What the is difference between NULL and ''(empty string)?

  • Ppc glibc: problem with kernel-headers dependency

    I wasn't sure where to post this... After attempting to follow the tutorial Wii Tutorial here: http://wiki.archlinux.org/index.php/Wii_Tutorial I discovered that the kernel-headers dependency of glibc is set to the wrong version. The dependency is ke

  • TVARV ENTRY TO BE IMPORTED TO QAS

    HI I AHVE A CODE IN DEV select single low into w_low from tvarv where name eq 'ZCUST_TABLE'.   w_table = w_low.   SET CURSOR field 'W_TABLE'. THE TABEL IS TVARV AND I HAVE TO MAINTAINE IN QAS IN THE TABLE BELOW DATA BUT IT IS NOT ALLOWING ME TO MAINT

  • Creating a task with a PXI-2522

    I am trying to create a task with a PXI-2522 module, this is a relay output module and I need to create a digital output task.Simply trying to create a digital output task with MAX, the PXI-2522 doesn't show up in the supported physical channel list?

  • How to show the employee's organizational unit in remuneration statement?

    Hi experts, I'm working on a payslip,and there are two questions to ask: 1.How to show the employee's organizational unit in remuneration statement? I didn't find a right table and right field to realize it. 2.I tried to show the notification in pays