Any bapi or FM for doing picking or PGI

Hi All
I want to do picking and PGI for outbound deliveries.  i tried using ws_delivery_update, its taking the pick quantity but not the batch number, for picking I just want to put the pick quantity same as delivery quantity and the batch say 'XYZ' provide by the distibuter need to put in the batch.
any help will be highly appreciated.
thanks
A

Hi Anup,
I have created a z functional module which is calling 'WS_DELIVERY_UPDATE' and its working fine. Sample code of my z-object is attached for your reference.
function z_post_goods_issue.
""Local interface:
*"  TABLES
*"      I_INPUT STRUCTURE  ZTMP_PGI OPTIONAL
  loop at i_input.
    clear : i_vbkok,flag1,flag2,i_prot,i_prot[].
    i_vbkok-vbeln_vl = i_input-vbeln.
    i_vbkok-wabuc    = 'X'.
    call function 'WS_DELIVERY_UPDATE'
         exporting
              vbkok_wa                          = i_vbkok
              synchron                           = 'X'
              commit                              = 'X'
              delivery                              = i_input-vbeln
              nicht_sperren                     = 'X'
              if_database_update             = '1'
              if_error_messages_send_0  = 'X'
         importing
              ef_error_any_0                  = flag1
              ef_error_in_goods_issue_0 = flag2
         tables
              prot                                  = i_prot.
    if flag1 = 'X' and flag2 = 'X' and not i_prot[] is initial.
      loop at i_prot where msgty = 'E'.
        call function 'FORMAT_MESSAGE'
             exporting
                  id   = i_prot-msgid
                  lang = sy-langu
                  no   = i_prot-msgno
             importing
                  msg  = i_input-retrn.
        if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
      endloop.
    else.
      i_input-retrn = 'PGI has been done'.
    endif.
    modify i_input.
  endloop.
Regards,
NJ

Similar Messages

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil

    Hi Experts,
    I searched for any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil in SDN/Google, but, i did not find any!!
    Do we have any BAPI or FM for O4G1 - Create Load Confirmation transaction - IS Oil? pls let me know
    Thank yu

    Hi Try searching with keyword confirmation in SE37, finally if you dont find any BAPI satisfying your requirement, its better go for BDC.
    Regards
    Abhii

  • Any BAPI or FM for 7KE1

    Hello,
    I have to upload data into SAP for t.code 7KE1. Tried doing a BDC for this , but it is not working as I am expecting it to. Is there any Function Module or a BAPI which I could use instead of a BDC ?
    Thanks

    Hi Try searching with keyword confirmation in SE37, finally if you dont find any BAPI satisfying your requirement, its better go for BDC.
    Regards
    Abhii

  • Any BAPI or FM for Assessment cycle create 3KE1 tcode

    Hi,
    Any BAPI or Function module to create actual assessment cycle 3KE1 tcode.
    i am doing BDC for that currently. Anybody done this please send the coding for this.
    thanks
    Muthappan

    Hi Muthappan,
    Could you please send me some sample code you used to create Assessment Cycle / Distribution Cycle using the function module.
    Many Thanks in advance
    Soumen

  • Is there is any BAPI/FM/LSMW for BOMBOS Interface?

    I have a requirement to write a custom program to transfer BOM to BOS. This we can do through CG37, But I want to execute CG37 functionality through custom program. Could you please let me know if any one knows BAPI/FM/LSMW for this? Thanks in advance.
    You can send information to [email protected]
    Thanks
    Srini

    Dear Srinivass
    Kannan is right; but why can you not use Cg37? Here you have a user interface to populate the data; and if you drill down you can see how it is designed. But you need to pay attention. The BOMBOS interface will work (according to my knowledgeI) only if you "trigger" the generation of the worklist; and this is done "different" using a different function module; I believe at the "end" 'C1L0_BOM_TRIGGER_GEN_WL is used as well. BOMBOS is not discussed often here.
    E.g. check: http://www.se80.co.uk/sapfms/c/c1l0/c1l0_bom_trigger_gen_wl.htm
    consolut - C1L0_BOM_TRIGGER_GEN_WL - EHS: BOMBOS - Initialisierung; Erstellung BOM-Eintrag in ESTWL (sorry I found by hazard only german klink; but there is similar link in english)
    May be check as well: SAP EHS Management for Beginners; some references to threads regaridng BOMBOS are available there as well.
    C.B.

  • Any BAPI or FM  for transaction TP04

    Dear all,
    Please tell me are there any bapi or FM to create travel request.
    Please help me.
    Thanks and Regards,
    Chandra

    I think you need to use BDC.
    This BAPI is there - BAPI_TRIP_CREATE_FROM_DATA  but it uses PR01.
    Check following to find BAPI for any tcode -
    1. Find out the package of the transaction. 
    Start Va01 go to system --> status. 
    Double click on transaction 
    Package is VA 
    Open this package in SE80 
    Open business engineering-->Business object types 
    Find the BO which sounds the most appropriate 
    I would suggest BUS2032 Sales Order 
    Double click. 
    Open methods. 
    Find the released method with from data or something similar in the name 
    , Createfromdat2 
    Position the cursor in it and click the program button 
    Scroll down to find the bapi used in this method 
    With this way you can also find out programs and FM's 
    2. Start va01 go to system-->status 
    Double click transaction VA01 
    Double click on package 
    Read the application component. (this is SD-SLS Sales) 
    Then open the transaction BAPI 
    Sales and distribution>Sales>sales order 
    createfromdat2 
    Regards,
    Amit
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM

  • Any BAPI or FM for GB01?

    hi guys,
    may i know is there any BAPI/ FM can be used to do GB01 transaction?
    with multiple line item entry and final checking to make sure the document balance is zero.
    thanks.

    Try BAPI_ACC_DOCUMENT_POST

  • Any BAPI or FM for sending e-mail

    Hi All,
    Is there a BAPI or FM for sending e-mail.
    Regards
    Nikhil Bansal

    Hi,
    try with this FM:
    <b>SO_NEW_DOCUMENT_SEND_API1</b>
    Reward points for helpful answers.
    Best regards,
    Gianluca Barile

  • BAPI: Any bapi or RFC for f-28

    Hi all,
            can any one tell me bapi or rfc available for t-code f-28
           please help me...
    Regards,
    devika G.

    Hi Ganesa,
    Kindly go through this. I think it will clear you.
    Pattern in which function modules are called
    The function module fi_document_process is called 4 times and finally document_post is called once which updates the tables.
    Step 1. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'CRBSEGZ' “Constant, can be hard coded
    xbkpf-bukrs '1000'. “ Company code from the screen
    xbkpf-belnr '$1'. “ constant , can be hard coded
    xbkpf-gjahr '2007'. “ Fiscal Year , from the screen
    xbkpf-blart 'DZ'. “ Can be obtained from the invoice document
    xbkpf-bldat '20070116'. “ Document Date, from the screen
    xbkpf-budat ’20070118'. “ Posting Date , from the screen
    xbkpf-monat '01'. “ constant , can be hard coded
    xbkpf-wwert '20070118'. “ posting Date
    xbkpf-usnam 'SAPUSER'. “ user name
    xbkpf-tcode 'FBZ1'. “ Constant, can be hard coded
    xbkpf-waers 'EUR'. “ currency, from the screen
    xbkpf-glvor 'RFBU'. “ constant can be hard coded
    xbkpf-awtyp 'BKPF'. “ constant, can be hard coded
    xbkpf-fikrs ’1000'. “ customer account number, from the screen
    xbkpf-hwaer 'EUR'. “ Currency, from the screen
    xbkpf-awsys 'ECCCLNT800'. „can be hard coded
    xbseg Record 1
    xbseg-bukrs '1000'. “ Company code from the screen
    xbseg-belnr '$1' . “ constant , can be hard coded
    xbseg-gjahr '2007'. „ Fiscal Year, from the screen
    xbseg-buzei ’001'. “ constant , can be hard coded
    xbseg-bschl '40'. “ constant , can be hard coded
    xbseg-koart 'S'. “ constant , can be hard coded
    xbseg-shkzg 'S' . “ constant , can be hard coded
    xbseg-dmbtr '10'. „ Amount, from the screen
    xbseg-wrbtr '10'. „ Amount, from the screen
    xbseg-pswbt ’10'. „ Amount, from the screen
    xbseg-pswsl 'EUR'. „ Currency, from the screen
    xbseg-valut ’20070118'. “ Posting date, from the screen
    xbseg-altkt '0000110100'.
    xbseg-vorgn 'RFBU'. “ constant , can be hard coded
    xbseg-fdlev 'B9'. “ constant , can be hard coded
    xbseg-fdwbt '10'. „ Amount, from the screen
    xbseg-fdtag '20070118'. “ Posting date, from the screen
    xbseg-kokrs ’1000'. “ Customer account
    xbseg-xkres 'X'. “ constant , can be hard coded
    xbseg-xopvw 'X'. “ constant , can be hard coded
    xbseg-hkont '0000110009'. “ Bank Account number
    xbseg-xbilk 'X'. “ constant , can be hard coded
    xbseg-fipos '9620'. “ constant , can be hard coded
    xbseg-lokkt '0000110009'. “ Bank Account number
    xbseg Record 2.
    bseg-bukrs '1000'. “ Company code from the screen
    bseg-belnr. '$1' “ constant , can be hard coded
    bseg-gjahr. '2007' “ Fiscal year from the screen
    bseg-augbl. '*' “ constant , can be hard coded
    bseg-buzei'002'. “ constant , can be hard coded
    bseg-bschl. '15' “ constant , can be hard coded
    bseg-koart. 'D' “ constant , can be hard coded
    bseg-shkzg. 'H' “ constant , can be hard coded
    bseg-dmbtr. '10' “Amount, from the screen
    bseg-wrbtr. '10' “Amount, from the screen
    bseg-pswbt. '10' “Amount, from the screen
    bseg-pswsl. 'EUR' “ currency, from the screen
    bseg-altkt. '0000120100'
    bseg-vorgn. 'RFBU' “ constant , can be hard coded
    bseg-kokrs. '1000' “ Customer account number
    bseg-xkres. 'X' “ constant , can be hard coded
    bseg-xopvw. 'X' “ constant , can be hard coded
    bseg-hkont. '0000140000'
    bseg-xbilk. 'X' “ constant , can be hard coded
    bseg-fipos. '9620' “ constant , can be hard coded
    bseg-lokkt. '0000140000'
    bseg-nebtr. '10' “ Amount, from the screen
    bseg-xauto. 'X' “ constant , can be hard coded
    bseg-xzahl. 'X' “ constant , can be hard coded
    bseg-saknr. '0000140000'
    bseg-zfbdt. '20070116'” Invoice document date
    bseg-hwmet. 'A' “ constant , can be hard coded
    bseg-kkber. '1000' “ Customer account number
    bseg-agzei. '1' “ constant , can be hard coded
    Step 2. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'CLOSE' “Constant, can be hard coded
    Table xausz3.
    ausz3-agzei. '1' “Constant, can be hard coded
    ausz3-waers. 'EUR' „ Currency from the screen
    ausz3-bukrs. '1000' „ Company Code
    ausz3-belnr. '1800000076' „ Document number from the screen
    ausz3-gjahr. '2007' „ Fiscal Year
    ausz3-buzei. '001'
    ausz3-shkzg. 'S' “Constant, can be hard coded
    ausz3-dmbtr. '10' “ Amount, from the screen
    ausz3-wrbtr. '10' “ Amount, from the screen
    ausz3-koart. 'D' “Constant, can be hard coded
    Step 3. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'PROJECT' “Constant, can be hard coded
    I_AUGLV = 'EINGZAHL' “Constant, can be hard coded
    Step 4. Call POST_DOCUMENT
    Import Parameters
    I_BKDF LIKE BKDF
    I_UF05A LIKE UF05A
    I_GENER LIKE T020-GENER
    I_AUGLV LIKE T041A-AUGLV
    Tables
    T_AUSZ1 LIKE AUSZ1
    T_AUSZ2 LIKE AUSZ2
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_BKP1 LIKE BKP1
    T_BKPF LIKE BKPF
    T_BSEC LIKE BSEC
    T_BSED LIKE BSED
    T_BSEG LIKE BSEG
    T_BSET LIKE BSET
    T_BSEU LIKE BSEU
    Values to populate import parameters
    Table xausz1
    xausz1-belnr. '1800000076' „ Document number from the screen
    xausz1-bukrs. '1000' „ Company code from the screen
    xausz1-gjahr. '2007' „ Fiscal year from the screen
    xausz1-buzei. '001' “ Constant , can be hard coded
    Table xausz2
    ausz2-bukrs. '1000' „ Company code from the screen
    ausz2-aktio. 'A' “ Constant , can be hard coded
    ausz2-augbl. '1400000054' „ Posted document number..from the function NUMBER_GET_NEXT(Dynamically generated unique number)
    ausz2-augdt. '20070118' „ Posting Date from the screen
    ausz2-auggj. '2007' „ Fiscal Year from the screen
    Table xbkpf
    First record of the internal table zbkpf has to be modified with the dynamically generated document number.
    Xbkpf-belnr. ‘1400000054’
    Table xbkp1
    xbkp1-currj '2007' “ Fiscal year, from the screen
    Table xbseg
    Following fields in the table xbseg has to be modified before passing to this function module.
    Record 1
    TO wa_bseg1-belnr. '1400000054' “ Dynamically generated number
    TO wa_bseg1-zuonr. '20070116' “ Document Date from the screen
    Record 2
    bseg1-belnr. '1400000054' „ Dynamically generated number
    bseg1-augdt. '20070118' „ Posting date from the screen
    bseg1-augcp. '20070118' „ Posting date from the screen
    bseg1-augbl. '1400000054' „ Dynamically generated number
    bseg1-zuonr. '14000000542007' „ Concatenating dynamically generated number and fiscal year
    bseg1-kunnr. '1000' “ Customer number from the screen
    Table Xbseu
    Record 1
    bseu-waers 'EUR' “ Currency from the screen
    Record 2
    bseu-waers. 'EUR' “ Currency from the screen
    bseu-xzver. 'X' “ Constant Hard coded
    Step 5. Call FI_DOCUMENT_PROCESS
    Import parameters
    I_GJAHR LIKE TRWCA-TOYEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    I_AWTYP LIKE ACCHD-AWTYP
    I_AWREF LIKE ACCHD-AWREF
    I_AWORG LIKE ACCHD-AWORG
    I_AWSYS LIKE ACCHD-AWSYS
    Tables
    T_BKPF LIKE BKPF
    Values to populate import parameters
    i_gjahr = '2007' “ Fiscal Year from the screen
    i_process = 'BELEG' “ Constant
    i_event = 'POST' “ Constant
    i_awtyp = 'BKPF' “ Constant
    i_awref = '1400000054'”Dynamically generated posting doc number
    i_aworg = '10002007' “ Concatenate comp code and Fiscal Year
    i_awsys = 'ECCCLNT800'” Constant.

  • Any BAPI for PCA Journal

    Hi,
    Any BAPI is their for PCA Journal(Tcode 9KE0).
    regards
    Muthappan

    I don't see any documentation. You may have to hack the code.
    Or raise an OSS message.
    Rob
    Message was edited by:
            Rob Burbank

  • BAPI Function Module for SCM APO Trans code /SAPAPO/AC42

    Hi,
       Is there any BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
       This BAPI FM should return the column values "Remaining Prod Alloc"  and "Incoming Order Quantity" when we give
       below details as inputs for the Tcode /SAPAPO/AC42
            Product Allocation Group
            Product
            Allocation Procedure
            prod Alloc step
            Product Alloc Object (Characteristics of Product Alloc Group)
            Plant (Characteristics of Product Alloc Group)
            Customer Group 5 (Characteristics of Product Alloc Group)
        Reward points if helpful.
    Thanks,
    Mich

    Hi,
    You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
    ProductAllocationAPO.DataInsert
    Interface to Import Product Allocation Data  Functionality
    This method is used to adopt data from OLTP systems for product allocation in the global availability check.
    You can do the following using the method:
    Adopt new data
    You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
    Change existing data
    You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
    The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
    Prerequisite
    To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
    Regards
    Vinod

  • Bapi or RFC for Scheduled production orders?

    Hi experts,
    I need to extract a list of the Scheduled production orders (for a specific plant)for integration purpose. Does anyone know if there is any BAPI or RFC for this purpose and could anyone tell me which one could be used.
    I noted that a similar topic "Retrieving production orders and material stock out R/3 system" posted Jan 16, 2006 has been discussed but the outcome was only that standard BAPI / RFC should be available for retrieving the production orders but there was no BAPI or RFC mentioned.
    Best regards,
    Niklas

    Hi,
    I found that the following BAPIs can be used with some parameters.
    BAPI_PRODORD_GET_LIST
    BAPI_PRODORD_GET_DETAIL
    Thanks
    Pavan

  • Bapi or BDC for me12

    hi,
    Is there any Bapi or BDC for me12.

    i think There is no BAPI but you can use ME_DIRECT_INPUT_INFORECORD. otherwise wait for another replies...
    Alternatively you can use these FM's
    codeME_DB_UPDATE_INFORECORDS Updating info records in database
    ME_UPDATE_INFORECORD Update program for purchasing info record
    ME_UPDATE_INFORECORD_COND Update price in info record during maintenance from condition transac
    ME_UPDATE_INFORECORD_PD Update info records from purchasing documents
    Hope this ll be helpful
    Thanks & Regards
    vinsee

  • Bapi / F.M. for creation of install base for equipment (CS, not CRM)

    Hi everybody,
      Do you know any bapi / F.M. for the creation of an istall base, with one equipment and several materials?
    Thank you
    Andrea

    Hi everybody,
      Do you know any bapi / F.M. for the creation of an istall base, with one equipment and several materials?
    Thank you
    Andrea

Maybe you are looking for

  • Which is better 4Gb or 8Gb iPhone?

    I bought the 4Gb iPhone and I am having second thoughts about it. I am thinking about exchanging it for the 8Gb. Any suggestions? Macbook   Mac OS X (10.4.10)  

  • Delivery Delta Records missing

    Hi Friends ! We have missd the delta records for 4 days. Only way I know to run the setup table again & get all the records till date. Then schedule V3 jobs & next day onwards delta records will be pulled. Do we have any other way to get those missed

  • Why do some keyboard shortcuts just stop working?

    Since upgrading to Lion, some of my keyboard shortcuts - especially one for Mail - just stops working now and then and the only thing I can figure out to fix it is to restart the macbook. The main one I've had trouble with is ⌘+ enter to send a messa

  • Unknown error on export to iBook

    I have a chapter of a book that has been successfully exported to iBook for distribution to our author team for review.  I opened it up with a current copy of IBA and Lion to do a search and replace on an abbreviation that was wrong.  I saved a versi

  • CS5 feature request - audio import?

    Does anyone else think a feature request to add an "ask" option for PREFERENCES-AUDIO-DEFAULT TRACK FORMAT would be a great idea? I'm constantly having to switch between stereo and mono etc when importing different types of files from different camer