Function module to Post picking quantity & PGI

hi all,
i want to post picking quantity and do PGI for the given delivery document . please let me know if there is any BAPI or function module to do that .
thanks in advace,
aswin.

Hi Friend,
Use function moudle
SD_DELIVERY_UPDATE_PICKING, it will do picking and PGI both for delivery.
Regards
Krishnendu

Similar Messages

  • SAP provided function module to update picking confirmation in VL02N

    Hi
    In transaction VL02N , the quantity,net weight and batch inf is updated manually.So the question is there any SAP provided function module to update picking confirmation instead of using BDC/call transaction method?

    Hi,
        Use below FM :
    Clear : i_prot.
    refresh : i_prot.
    Delivery Update
    CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
    EXPORTING
    do_commit = 'X'
    TABLES
    t_delivery_items = i_lips
    prot = i_prot
    EXCEPTIONS
    conversion_overflow = 1
    essential_data_missing = 2
    error = 3
    nothing_to_update = 4
    lock_after_update_failed = 5
    error_in_delivery_update = 6
    OTHERS = 7.
    COMMIT WORK.
    Pass lips-lgort..
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4212688&messageID=3855382
    Regards

  • Function module for posting idoc

    Hi,
    For Inbound Idoc
    In function module for posting the Idoc what should be given as the return_variable.

    Hi,
    it depends on application.i have written some piece of code for my requiremnt.chek it,may be it will help u.
    FORM idoc_status_ord_change
         TABLES idoc_data    STRUCTURE  edidd
                idoc_status  STRUCTURE  bdidocstat
                r_variables  STRUCTURE  bdwfretvar
          USING idoc_contrl  LIKE  edidc
                value(retn_info) LIKE   bapiret2
                status       LIKE  bdidocstat-status
                wf_result    LIKE  bdwf_param-result.
      CLEAR idoc_status.
      idoc_status-docnum   = idoc_contrl-docnum.
      idoc_status-msgty    = retn_info-type.
      idoc_status-msgid    = retn_info-id.
      idoc_status-msgno    = retn_info-number.
      idoc_status-appl_log = retn_info-log_no.
      idoc_status-msgv1    = retn_info-message_v1.
      idoc_status-msgv2    = retn_info-message_v2.
      idoc_status-msgv3    = retn_info-message_v3.
      idoc_status-msgv4    = retn_info-message_v4.
      idoc_status-repid    = sy-repid.
      idoc_status-status   = status.
      APPEND idoc_status.
      IF idoc_status-status = '51'.
        wf_result = '99999'.
        r_variables-wf_param   = 'Error_IDOCs'.
        r_variables-doc_number = idoc_contrl-docnum.
        READ TABLE r_variables FROM r_variables.
        IF sy-subrc <> 0.
          APPEND r_variables.
        ENDIF.
      ELSEIF idoc_status-status = '53'.
        CLEAR wf_result.
        r_variables-wf_param = 'Processed_IDOCs'.
        r_variables-doc_number = idoc_contrl-docnum.
        READ TABLE r_variables FROM r_variables.
        IF sy-subrc <> 0.
          APPEND r_variables.
        ENDIF.
      ENDIF.
    regards,
    nagaraj

  • Function Module for Posting the Delivery Doument

    Dear Experts,
            Could you please send me the Function Module for Posting the Delivery Doument.
    Thanks & Regards,
    Ashok.

    Hi,
    What do you mean by POSTING the delivery document?
    Are you mentioning the creation of Goods Issue?

  • Function Module to get planned Quantity from posting date

    hi,
    i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
    is there any function module which will fetch this data ...
    Edited by: sonal musale on Jun 23, 2008 3:53 PM

    Hi,
    I have also the same problem. Any solution you have for this one?
    Thanks,
    Raymond

  • Function module to retrive material quantity based

    Is there any function module which can help me retrieve material quantity for a particular material where i pass material number, plant, storage location and start date and end dates(posting period) for which i require the material quantity.

    Hi Kaushal,
        Check this lnik out...
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Regards,
    Santosh

  • Function Module for Post Partial Clearing

    Dear Expert,
    Is it possible to use FM POSTING_INTERFACE_CLEARING to clear partial open items ? If yes, kindly suggest what parameters need to be passed.
    But should this is not possible, could you suggest  any function modules that can do partial clearing ?
    Thank you

    Dear expert
       Paritial Payment:
    A partial payment is a payment that is posted to an account without any open items being cleared. You assign this partial payment to an open item. When you post the partial payment, the system marks the document number of the original open item in the line item for the partial payment. The original open item and the partial payment remain open.
    Suppose original invoice is with 1000 /-
    current payment is 500 /-
    then it will show both 1000 and 500 as open items with balance 500
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
    Residual item:
    A residual item results when a payment is made for less than the actual amount outstanding. You clear the original open item, and the system posts a new open item. This new open item is for the same amount as the original open item minus the amount paid.
    Suppose original invoice is with 1000 /-
    current residual payment is 500 /-
    then balance 500 only shown as open item (New line item created during residual payment )
    http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
    Regards
      Ajeesh.s

  • BAPI/Function Module for posting internal order + cost center plan

    Hi Guru:
    Is there any function module/BAPI, which could be used to post internal order + cost center( both of them )plan data?
    Like post a record:
    internal order = 10000
    cost center = C1000
    amount = 1000$
    for plann version 30?
    It seems the BAPI could only contain 1 cost object, either cost center or internal order.
    Thanks.
    Eric

    Hi again,
    I think you may have missed something important here. In R/3 there can only be a single "real" cost object for any one posting. If not then the whole SAP financail model would collapse as there would be "double postings" and that is certainly not wanted.
    If there is a need to post to two cost objects, like in your case, then one of the cost objects MUST be statistical.
    In your scenario SAP has thought of a solution that might be of help for you. An internal order can be set to be statistical in master data. When posting to both the cost center and the internal order then you will get a real posting for the CC and a statisitical posting for the IO. Reporting does work with this as per your requirement.
    Hope this gives you some hints for how to proceed.
    Regards, Johan
    Aaaaah. Noted that this was only plan data. Sorry. But the same still applies for plan data postings as well as for actual data postings. If there should be just one posting that could be "drilled down" from IO to CC -> If you post twice then, when doing "Grand total" for instance, double values would appear. So, still IO should be statistical. //Johan
    Message was edited by: Johan von Reedtz

  • Function Module to post budgeting entry

    Hi All,
    Is anybody aware of a function module which can help me to post a budgeting entry ? I would appreciate if anyone can give me an idea to post a preposted budgeting entry created via transaction "FMBB". The process has to be a background one since I will be integrating this in the background processing of the workflow. Till now I have been exploring the method "PREPOSTED_POST" of the class "CL_FMKU_ENTRYDOC_HANDLER" but it has lots of dependencies and I am not being able to use this method. The transaction "FMBB" does not support BDC as well as it includes a splitter control from where we have to select the document and none of the fields have a parameter ID associated.
    Best Regards,
    Sudhi

    Try
    FMAVC_READ_INDEX_ACO_DOWN 
    FMBCFF_ENTRY_DOC_POST     
    FMBCFF_POST_REVERSAL_DOC  
    FMBCFF_REVERSAL_DOC_POST  
    FMCCF_BUDGET_POST         
    FMBD_POST                 
    FMCU_GET_BULEDGERS        
    KBPV_POST_DATA            
    Thanks

  • Variables passed to Function module for posting the Idoc

    Hi,
    For Posting the Inbound Idoc a Function module is created what should be the values passed to
    1) return_variable and
    2) workflow_result.
    I saw in many of the program like this if there is an error in posting.
    I gave return_variable-wf_param = ' Error Idoc'.
    and workflow_result = '99999'.
    Why are these values passed, where are they used.

    Josephine,
    In your parntner profile for your customer/vendor ( depending on your idoc type and business scenario) , you would have assigned the post processing permitted agent.
    In case the function module errors out, these values are carried out to the WF container and appropriate post processing notifications are sent to the agents. That is the purpose of having these variables in here.
    It could be a success/failure, agents are notified in either case.
    Ganesh

  • Function module to update 'Counted Quantity' in inventory count

    Hi Gurus,
    Are there any function module that can be used to update field counted quantity (LINV-MENGA) in inventory count (tcode LI11N)?
    Thanks & Regards,
    Ari

    Hi,
    Check in the BAPI tocde- Under MM-> Inventory Management to find the Fm or
    Pls try to use this FM for Physical Inventory  -
    BAPI_MATPHYSINV_COUNT
    Pls refer to this BOR object BUS2028 for more FM
    These relaetd BAPIs are stored under a BOR. Check the table TOJTB for the BOR and then in that BOR we can find the related BAPIs.
    Regards
    Lekha

  • Function Module to post doc through FPE1 Tcode

    Hi Experts.
    Can you please let mw know the function module used to post doc through FPE1 Tcode in ISU Module?
    Regards,
    surya

    Hi.
    Here is my code. The FM not posting any document.
    DATA:DOCUMENTHEADER   LIKE BAPIDFKKKO,
         PARTNERPOSITIONS LIKE BAPIDFKKOP OCCURS 0 WITH HEADER LINE,
         DOCUMENTNUMBER   LIKE BAPIDFKKKO-DOC_NO,
         RETURN           LIKE BAPIRET2.
    START-OF-SELECTION.
    CLEAR:PARTNERPOSITIONS,PARTNERPOSITIONS[].
    PARTNERPOSITIONS-COMP_CODE = '0400'.
    PARTNERPOSITIONS-CONT_ACCT = '000550116672'.
    PARTNERPOSITIONS-MAIN_TRANS = '6000'.
    PARTNERPOSITIONS-SUB_TRANS = '3021'.
    PARTNERPOSITIONS-DIVISION = '03'.
    PARTNERPOSITIONS-DOC_DATE = SY-DATUM.
    PARTNERPOSITIONS-POST_DATE = SY-DATUM.
    PARTNERPOSITIONS-CURRENCY = 'ZAR'.
    PARTNERPOSITIONS-AMOUNT = '1016190'.
    PARTNERPOSITIONS-BUSPARTNER = '4999924191'.
    PARTNERPOSITIONS-G_L_ACCT = '0008291003'.
    PARTNERPOSITIONS-TAX_CODE = 'A1'.
    PARTNERPOSITIONS-NET_DATE = SY-DATUM.
    PARTNERPOSITIONS-ITEM = '01'.
    PARTNERPOSITIONS-CMMT_ITEM = '1103003'.
    PARTNERPOSITIONS-FUNDS_CTR = '924320'.
    PARTNERPOSITIONS-FUND = 'COJ'.
    PARTNERPOSITIONS-FM_ORIG_AREA = '1000'.
    PARTNERPOSITIONS-FM_CATEGORY = 'G'.
    PARTNERPOSITIONS-CLEAR_REAS = '03'.
    PARTNERPOSITIONS-APPL_AREA = 'R'.
    APPEND PARTNERPOSITIONS.
    CLEAR:DOCUMENTHEADER.
    DOCUMENTHEADER-FIKEY = '10021901/SWF'.
    DOCUMENTHEADER-DOC_TYPE = 'TC'.
    DOCUMENTHEADER-CREATED_BY = SY-UNAME.
    DOCUMENTHEADER-DOC_DATE = SY-DATUM.
    DOCUMENTHEADER-POST_DATE = SY-DATUM.
    DOCUMENTHEADER-CURRENCY = 'ZAR'.
    DOCUMENTHEADER-APPL_AREA = 'R'.
    DOCUMENTHEADER-DOC_SOURCE_KEY = '01'.
    BREAK-POINT.
    CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
      EXPORTING
        TESTRUN                       = 'X'
        DOCUMENTHEADER                = DOCUMENTHEADER
      COMPLETEDOCUMENT              =
      NET_RECEIVABLES               =
    IMPORTING
       DOCUMENTNUMBER                =  DOCUMENTNUMBER
       RETURN                        =  RETURN
    TABLES
       PARTNERPOSITIONS              =  PARTNERPOSITIONS[].
    WRITE:/ DOCUMENTNUMBER.

  • How can create a function module for currency and quantity fields

    hi,
    i want to create a function module with some fields.when i activated it give some errors for 
    netpr,menge,wemng  fields(currency, quantity fields).error is it asks for reference fields. 
    please send me solution for it.
    sreenu.

    Hi Sreenu,
    While creating CURRENCY/QUANTITY fields in the DataBase Table, you have to enter a REFERENCE TABLE and a REFERENCE FIELD to the field.
    For that, after entering the field name and the data type in the correcponding columns, you have to place the cursor on the data type of the required field and click the CURRENCY/QUANTITY FIELDS tab. You will find two columns called REFERENCE TABLE and a REFERENCE FIELD.
    you have to enter a reference table in which a currency/quantity field is used and a reference field which is a currency/quantity field in that table.
    For Example, below is the table details.
    FIELD DATATYPE LENGTH DEC.PLACES REF.TABLE REF.FIELD
    1.SNO     CHAR 5
    2.AMOUNT  CURR 10     2          T001      WAERS
    3.NOS     QUAN 5                 KNA1      /VSO/R_PAL_UL
    Here Field 2(AMOUNT) is a CURR field whose Ref. Table is T001 and Ref. Field is WAERS and Field 3(NOS) is a QUAN field whose Ref. Table is KNA1 and Ref. Field is /VSO/R_PAL_UL.
    Hope this will help you.
    Regards,
    Vaitheeswaran

  • Outbound function module to post the data in to WMMBID02 IDOC

    Hi Experts,
    I am using standerd idoc WMMB1D02 to post the goods recipt data.
    I am using the outbound idoc , how to post the data in to idoc using FM or BAPI ?.
    please help me on this.
    Thanks,
    Venkat.

    Hi Hakim ,
    Thanks for tour replay , we are using the standerd message type and standerd idoc are WMMBXY,
    WMMBID02. I did't notice any standerd  FM or BAPI which will create the outbound idoc for the same.
    please help me on this.
    Thanks,
    Venkat.

  • Function Module 'GUI_UPLOAD' not picking whole text provided

    Hi ,
    For transaction va01 i am using BDC program to upload.In that i used FM 'GUI_UPLOAD' and i get data from text file(notepad file) and the last filed is header invoice text.I am giving very long text in flat file.the FM doesn't read whole text just it is reading around 142 characters only the text field size is 1000 character.why is it so?

    The problem is that in debuging i don't see the whole text,actually The 'GuI_UPLOAD' is picking whole text the thing is that I need to use offset in debuging.suppose if field has 500 character i can see some around 100 character in debuging then for remainingg character i need to see field + 100(100) ,field + 200(100) .....and have to proceed soon to see character till 500 characters.
    Problem solved.

Maybe you are looking for

  • Error install windows 8.1 on a 2010 macbook pro 13 inc

    hi. i am trying to install windows 8.1 on a 2010 macbook pro 13 inc i have now successfully make bootcamp show the option to create a windows 7 install disk how ever it does not show the other part of create windows 7 or "later version" install disk

  • When i boot up my mac mini on my bedroom TV...

    there is no picture on the screen. But if i turn it on then off on my living room tv THEN turn it on connected to my bedrrom tv it works fine, untill I turn it back off again, any suggestions?? Ive just upgraded to Mac OS X Lion, and im using an HDMI

  • QEMU internet security

    I'm aware that when using QEMU with a bridged network connection it is important to think about security. However, with the default networking (-net nic -net user), is there a need to run a firewall on the guest OS? As I understand it, the internet c

  • Odd error message after updating to Firefox 6

    When I updated to Firefox 6, after the addon compatibility check finished, a window appeared saying: XML Parsing Error: undefined entity Location: chrome://browser/content/browser.xul Line Number 233, Column 5: <key id="key_scratchpad" keycode="&scra

  • Showing multiple popups

    Hey all, I am trying to implement my own menu system by subclassing JMenu, JMenuItem, and JPopupMenu. Everything works fine, except for one glitch: when what should be a submenu opens, the main menu closes because they are both popups and swing only