Updating Document Flow

Hi,
I've created an inbound delivery from an outbound delivery.  Now I need to update the document flow, and I've used the code below to do so.  My problem is when viewing the document flow for the inbound delivery via VL33N - no document flow is shown.  When I view the doc flow for the outbound delivery(VL03N), the inbound delivery shows up there. 
Why doesn't doc flow show when viewing the inbound delivery? 
Do I need to update document flow another way?
LOOP AT t_ib_lips INTO s_ib_lips.
      CLEAR s_ob_lips.
      READ TABLE t_ob_lips INTO s_ob_lips WITH KEY
                                               vgbel = s_ib_lips-vgbel
                                               vgpos = s_ib_lips-vgpos.
* test area for document flow
      CLEAR: s_vbfa.
      s_vbfa-mandt   = s_ib_lips-mandt.
      s_vbfa-vbelv   = s_ob_lips-vbeln.        "OB delivery number
      s_vbfa-posnv   = s_ob_lips-posnr.        "OB delivery item
      s_vbfa-vbtyp_v = is_ob_likp-vbtyp.       "OB delivery type
      s_vbfa-vbeln   = s_ib_lips-vbeln.        "IB delivery number
      s_vbfa-posnn   = s_ib_lips-posnr.        "IB delivery item
      s_vbfa-vbtyp_n = s_ib_likp-vbtyp.        "IB delivery type
      s_vbfa-rfmng   = s_ob_lips-lgmng.        "Referenced quantity
      s_vbfa-meins   = s_ob_lips-meins.        "uom
      s_vbfa-VRKME   = s_ob_lips-vrkme.
      s_vbfa-matnr   = '                 X'.
*      s_vbfa-stufe   = '00'.
      CALL FUNCTION 'RV_XVBFA_MAINTAIN'
           EXPORTING
                f_vorgang = 'H'
                fvbfa     = s_vbfa
                fvbfad    = s_vbfad
           TABLES
                fxvbfa    = t_xvbfa
                fyvbfa    = t_yvbfa
                fxvbapf   = t_xvbapf.
    ENDLOOP.
CALL FUNCTION 'RV_DOCUMENT_FLOW_UPDATE_U'
         EXPORTING
              f_vbeln  = is_ob_likp-vbeln
              i_status = 'H'
         TABLES
              fxvbfa   = t_xvbfa
              fyvbfa   = t_yvbfa.
Below is some of the data from the entry of VBFA that is created
VBELV         POSNV    VBELN     POSNN  VBTYP_N  VBTYP_V     STUFE
100005128     1      180006319   1     7       J     00

Is there a BAPI you can use instead? Neither of these FMs are released or documented. It's quite a task trying to figure out how SAP uses these FMs to update.
Rob

Similar Messages

  • Update Document Flow - delivery -- bill

    Hi Experts,
    I want to "deactivate" update document flow between delivery and bill for an item category (say e.g. ZTAN). Where can I do that?
    In other words in table VBFA when I put "Follow on" document as my invoice #, I do not want to see my delivery # as preceeding document.
    I have checked VTFL, at item category level, there is NO field as "Update document flow"
    also I have checked VTFA, at item category level, there is NO field as "Update document flow"
    (in VTAA and VTLA, at item category level, there is field as "Update document flow" - but this is not my query)
    Please help
    Typewriter

    Hi,
    I donot understand your post. What shall I accomplish with your suggestion? For my better understanding, please elaborate.
    In VTFL, at item category level, Copy requirement is to check if all the criteria are met, if yes, then copying information is done from Delivery to Invoice. I think, this has nothing to do with populating information in document flow.
    Could you please advice, where exactly is the configuration for "Update doc flow" in VTFL and VTFA?

  • Goods Reciept BAPI that updates Document Flow

    Hello,
      We are looking for a BAPI or FM that posts a goods reciept against a PO and updates document flow. Does anyone know if this exists?
      We have been using BAPI_GOODSMVT_CREATE, which will post the GR against the PO but it does not update the Doc Flow.  It is essential for Doc Flow to be updated because it posts the event in our SAP SCM EM instance. 
    Any help would be much appreciated... will award as many points possible.

    Hi,
    Check the below code:
    *********Work areas***********
    DATA : wa_mseg  type ty_mseg,
           wa_mseg1 TYPE ty_gds,
           wa_mkpf  LIKE mkpf,
           wa_lgort_sum TYPE ty_lgort_sum,
           wa_loss_data LIKE zpesloss,
           wa_zpesloss LIKE zpesloss.
    DATA : v_header   LIKE bapi2017_gm_head_01,
           v_gm_code  LIKE bapi2017_gm_code.
    DATA: wa_headret LIKE bapi2017_gm_head_ret,
          wa_matdoc TYPE bapi2017_gm_head_ret-mat_doc,
          wa_matdocyr TYPE bapi2017_gm_head_ret-doc_year.
    DATA: i_items          TYPE STANDARD TABLE OF t_items,
          i_return_goods   TYPE STANDARD TABLE OF t_return with header line,
           i_message TYPE TABLE OF bapiret2 WITH HEADER LINE.
          wa_mseg1-bwart =   '551'.
          wa_mseg1-matnr  = ws_matnr.
          wa_mseg1-umlgo  = i_mseg1-umlgo.
          wa_mseg1-lgort  = i_mseg1-lgort.
          wa_mseg1-werks  = 'SP01'.
    Header Data
        v_header-pstng_date = sy-datum.
        v_header-doc_date = sy-datum.
    Code Group
        v_gm_code-gm_code = '03'.
    ******Mandatory fields passed into BAPI***
        CLEAR i_items[].
        wa_items-material  = wa_mseg1-matnr.
        wa_items-plant     = wa_mseg1-werks.
        wa_items-stge_loc  = wa_mseg1-lgort.
        wa_items-move_type = wa_mseg1-bwart.
        wa_items-entry_qnt = wa_mseg1-lossquantity.
        wa_items-costcenter = '0000012000'.
        APPEND wa_items TO i_items.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header             = v_header
            goodsmvt_code               = v_gm_code
      TESTRUN                     = ' '
       IMPORTING
         goodsmvt_headret            = wa_headret
             materialdocument        = wa_matdoc
             matdocumentyear         = wa_matdocyr
          TABLES
            goodsmvt_item               = i_items
      GOODSMVT_SERIALNUMBER       =
          return                      = i_return_goods  .
    if i_return_goods[] is not initial.
      message i001(zespur) with  i_return_goods-message.
    stop.
    endif.
    IF i_return_goods[]  IS  INITIAL .
        lws_wait = 3.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = lws_wait.
          WAIT UP TO 1 SECONDS.
    endif.
    Regards,
    Prakash.

  • BAPI_GOODSMVT_CREATE not updating document flow

    I created a function to create an inbound delivery against a PUrchase Order and then Post the goods receipt against that inbound delivery. The inbound delivery and the material document are created correctly in the DEV environment.
    The issue is that in our QA environment the document are created correctly but the document flow is not updated at all!! Any idea of where should I be looking at to see difference between these environments?
    I'm using BAPI BAPI_GOODSMVT_CREATE  to Post the Goods Receipt.
    Thanks.

    sort delivery by vbeln posnr.
    loop at delivery.
    Populate BAPI variables ready for call
      goodsmvt_header-pstng_date = sy-datlo.
      goodsmvt_header-doc_date = sy-datlo.
      goodsmvt_header-bill_of_lading = delivery-lifex.
      goodsmvt_header-ref_doc_no = delivery-lifex.
      goodsmvt_header-pr_uname = sy-uname.
      goodsmvt_header-header_txt = 'Auto GR of I/Bound Del'.
      goodsmvt_code-gm_code = con_move_code.
      goodsmvt_item-material = delivery-matnr.
      goodsmvt_item-plant = delivery-werks.
      goodsmvt_item-stge_loc = delivery-lgort.
      goodsmvt_item-move_type = con_move_type.
      goodsmvt_item-vendor = delivery-lifnr.
      goodsmvt_item-entry_qnt = delivery-lfimg.
      goodsmvt_item-entry_uom = delivery-meins.
      goodsmvt_item-mvt_ind = con_move_item.
      goodsmvt_item-deliv_numb_to_search = delivery-vbeln.
      goodsmvt_item-deliv_item_to_search = delivery-posnr.
      append goodsmvt_item.
      clear goodsmvt_item.
    endloop.
    *Call BAPI
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
       goodsmvt_header       = goodsmvt_header
       goodsmvt_code        = goodsmvt_code
      TESTRUN           = ' '
      importing
       goodsmvt_headret      = goodsmvt_headret
       materialdocument      = materialdocument
       matdocumentyear       = matdocumentyear
      tables
       goodsmvt_item        = goodsmvt_item
      GOODSMVT_SERIALNUMBER    =
       return           = return.
    Check BAPI RETURN table to ensure call was successful
    loop at return where type = 'E'.
      exit.
    endloop.
    if sy-subrc eq 0.
      rollback work.
      message e999 with 'GR BAPI Failed, process delivery manually'.
    endif.

  • QM02 - notifications - update document flow for new action box item

    I have added a new action box item on qm02 (notifications). I am created a PO and a delivery. I wish to update the document flow to include these new records.
    I am trying to work with function qmlr_create_document_flow without success.
    Does anyone know how to do this?
    Thanks,
    rv

    Hi Rags,
    Thanks for your reply.
    About your reply:
    1) Yes, I was also thinking that 2 preceding docs may not be possible in a doc flow, and had also indicated the same to my customer. However, wanted to be 100% sure that it cannot be done.
    2) I cannot go ahead with a Service/Release Order. The requirement is to create a Return Order or a Credit Memo Request (CR) directly from the Service Notification and any other order is not in scope.
    I was thinking of something as below:
    The Service Notification header is linked to Return Order header only, there are no links at the item level. Is it a feasible solution to have a doc flow between invoice items &  return order items, since return order items are not yet linked?....I am just thinking of different things to find a solution!
    Thanks again.
    Cheers
    Vicky

  • Not updateing document flow

    Dear Experts,
       I have completed sales cycle,  after completeing the cycle in document flow  delivery document  is not yet processed, and i have created invoice also i.e why it is showing not yet processed in the document flow. is it copy control problem? pls let me know experts
    Thanks
    Basavaraj

    Hi,
    Please below steps:
    1. Check Copy controls from Sales order to Delivery and Delivery to Billing document ( VTLA & VTFL)
    2. Check Incompletion Procedure
    3. Check Incompletion Rule
    4. Check Customer Master in customer master Goto Sales Area Data - Shipping Tab - Partial Delivery check which option is there
    Regards,
    MH

  • Document flow not getting updated

    Dear Experts,
    I am facing a  problem in document flow.
    I create order (for free goods order type ZFRE), do delivery and finally billing.Outbound delivery is showing as "Being Processed".While I have maintained "Update document flow" in item level in copy control.
    For your information, this is free goods order type and the system has been configured in such a way that accounting docs are not generated after billing. (As it is for free goods.).Could this be because accounting docs are not being generated?
    Kindly advise.
    Regards,
    Randhir

    Hi
    Pls see the copy control sales document to sales document T.Code VTAA
    Go to the item category  and see the document flow field is activated or not if is not activated pls activate  and re run the scenario
    pls check your correct defined  Z item category the document flow is activated or not.
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 8, 2010 12:09 PM

  • Block document flow update when creating a new sales document by reference

    Hi,
    I have set up copy rules to copy a quotation to a new quotation. However, my customer does not want the reference quotation to appear in the document flow. Could you please help me with this.
    I have so far:
    - Removed the value from 'Update document flow' in the item
    - Put an empty value in 'Copy item number from reference' and 'Complete reference' at the header level
    Could you please help me,
    Thanks,

    Simply,
    Create sales order (va01)
    Goto  EDIT in menu bar then choose Propose Item or press CTRL + f11 from key board.
    Then provide Sales Document with default with/without quantity or selection list.
    Hope it can assist you.
    Thanks & Regards
    JP

  • Need no document flow update for sales order create with reference

    Dear All.
    We would like to have the ability to create a sales order with reference to another sales order, and have the document flow of the sales order not updated.
    Unlike the case of a standard create with reference where the documents are linked, in this case there is no relationship between the documents.  The first document is just acting like a template for the remaining documents, to save time during order entry.
    We have turned off update of document flow at the line item level.
    But I don't see a way for us to turn this off at the header (document level).  So wondering if there's another way to turn this off, or possibly through user-exit or VOFM requirement?
    Has anyone else done this?
    I think that CRM has this functionality, but we're still entering orders through ERP-SD.
    Many Thanks!

    Hello Colleague;
    The issue you have reported is SAP standard.  The checkbox "Update Document Flow" (V_TVCPAAP-UPFLU) controls document flow at item level.  If this checkbox is set to blank, there will be no document flow at item level.
    However, the document flow cannot be completely turned off - if the 'update document flow' indicator is blank, you will still see an entry in the document flow, but there will be no update to table VBFA (Sales Document Flow) and the document flow of the predecessor will not be updated at item level (no record in VBFA at item level).                                                                               
    The reason is that the system checks VBAP (Sales Document: Item Data) for fields VGBEL (Document number of the reference document) and VGPOS (Item number of the reference item) for values.  You will always have document flow information on header and item level in the successor because it stores this information in table VBAP.                                                                               
    Related with this issue, you can find a Note 53383 for your review.
    I hope it can clarify the case.
    Regards
    Ruy Castro

  • Proforma invoice number is not in the document flow of the order.

    Hi all,
    I have a doubt , if i create an proforma invoice based on order, and after that i create delivery and billing, i cannot able to see the  proforma invoice in the document flow of the particular order.   pls guide me on this
    Thanks all
    Kumi

    Hi,
    Goto VTLA, and check the  UPDATE DOCUMENT FLOW in the  copy control
    If it is already set , then directly from sales order you can find the Proforma invoice .
    Goto the sales order in VA02 and enter into the overscreen and from there check the document flow ( F5), now you can see the Proforma invoices.
    regards,
    santosh

  • Contract not visible in sales order document flow

    Hi
    I am supposed to create sales order from Contract.The requirement is that only header data should be copied.Thus  In Copy Control configuration I did not maintain item level and schedule line level settings for these document types. The issue is that after running the whole cycle from Contract -->SO --> Delivery --> Invoice when I see the Sales Order document flow I can see all other documents but not the contract.Also In Contract document flow I can see only sales order but not delivery and invoice.Please guide.

    Hello,
    Update Document Flow option is available only at Item Level in copy control setting from Contract to Sales Order.
    Check out your Copy Control Records at Item Level. There would be "2" mentioned in "pdate document flow" box.
    2 means Create doc. flow records except for dely/goods issue/billdoc. Here you to maintain "X" for Complete Document flow.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Reclamations and returns DOCUMENT FLOW

    Hi,
    I ve to enhance the QM01/02/03 ,DOCUMENT FLOW when ever we press document flow push button,
    QM02-
    provide any QN number,
    in the menu
    extras -> document notifications->document flow->list
    rifht now it is showing only 2/3 documents in tree
    but it should be modified to
    The standard SAP Document Flow, but it must be modified, in order to show all the subsequent documents, and the user must be able to go directly to each subsequent documents.  
    The flow must follow this hierarchy: 
    For documents type ZS/ZV
    - Purchase Order
        - QM Notif.
            - Stock transfer or Scrapping
                 - Return Purchase Order
                       - Delivery
                           - Goods issue
                              - Goods receipt
                                 - Invoice
    For document Type: ZC.
    - Reference document
    - QM Notif.
    - Return Sales Order or Credit memo req. or Debit memo req.
                                              - Return invoice or Credit memo or Debit memo
    This document flows should be shown for each QN in the QM11 transaction.
    menu
    Notification -> Display Document flow
    It is a network flow that should  as is but all the documents it should show.
    it is internally calling Business objects
    1. Goto transaction "QM02",
    2. Provide some QN number
    Observe: LIST
                     GRAPHIC
    If u goto the sytem→status u ll find the program “SAPLIQS0”
    Find the Function code responsible for “DOCF”
    It will call a report program “RIBELF20”
    For other “GRAPHIC” shown in above picture
    U will find form exit “FORM fcode_docf2_f00”
    Where we can create new program like above and we can insert our own Z Program.
    But if u go to the program level and debug,
    There is one FM "DISPLAY_DOCUMENT_FLOW_ALV" that is responsible for such type of display,
    No issues,
    But internally before that he extracted all the business Objects responsible for that.
    How can I get all the business objects that are required to me to show the all the documents that I have already sent to u.
    Below are my findings about the document flow at QM11 level.
    When ever u press the Display document flow.
    The O/P is
    1. QM11 is the standard transaction using program “RQMELL10”.
        We can not modify the standard SAP transaction, and insert our code in this program.
         Alternative: we have to copy the program in Z namespace and attach the same to Z transaction code.
        Confirm the same whether the users are ready to use the “Z” transaction.
    2. Even though they accept for this:
        The function Module responsible for the Network type of display is “QM11_LESEN_BELEGDATEN_ALLG”.
        With the input parameters as (a) QN number (b) Business Object i.e.  BUS2078 (Quality notification number) (c) maximum number of steps
        The standard function module should be used in Z namespace program; the standard function module internally calls one more Function module 
        “NERL_GET_NEIGHBOURHOOD” that is responsible for the getting business objects of the corresponding number.
         But this function module gets the only three documents data but not the else that are mentioned in the FD.
    <b>Kindly provide any function module, which can meet such criteria, and the business objects of the related documents in the flow that is required.</b>

    Hi,
    Goto the T.Code "VOV7".
    Select your item category.
    Details.
    Maintain the Completion rule as "A(Item is completed with the first reference)".
    Save.
    If you do this after the follow on document is created,the item is completed and you cannot reject the item.
    For your second question,
    Goto the T.Code "VTLA".
    Select your valid combination.
    Click on item.Select your item category.Details.
    There is a check box called as "Update document flow".Tick that one.
    Save.
    Regards,
    Krishna.

  • Document flow query

    Hi,
    This query is regarding document flow updating:
    If we observe Update document flow check is only available in VTLA-ITEM, but it is not available in none of copy controls.
    My doubt is how delivery to invoice is updating in doc.flow,
    How Sales order to invoice(If invoice is created w.r.t sales order), how this updating??
    VTAA,VTFF...how these document flow are updating??
    Any suggestion on doubt please...

    Hi Rajk,
    Yes, actually I have faced an issue with an invoice.
    For one particular invoice status showing as cancelled, but the same has not updated in the document flow.  VTFF is maintained same and this was happened with only one invoice.
    If I see from the cancelled invoice I am able to see the doc.flow, but not from the parent invoice  nor so or delivery.
    In my analysis I found that there are no check buttons for doc.flow for VTFL,VTFF and got a doubt and posted the same here to clarify my doubt.
    I have checked in cdhdr,cdpos...etc change logs...but not succeeded...

  • CRM: How to create document flow

    Hello together,
    In the process framework I defined a new process which can be started from a sales qutotation. This process loads my own compentent where the user can upload technical objects (such as connection objects or points of delivery) and create a new object set (IsuOrderBasketSet) with the uploades technical objects.
    The requirement is to link the quotation with the created object set and vice versa so that the user can see the object set in the quotations assignment block "transaction history" and the qoutation in the object sets assignment block "transaction history".
    Does anybody know how I can meet this requirement?
    Thanks in advance,
    Sebastian

    Hi,
    I found a solution using the following Code. I have successfully created a document flow between two quotations:
        DATA guid_a TYPE crmt_object_guid.
        DATA guid_b TYPE crmt_object_guid.
        DATA: it_activity_h TYPE crmt_activity_h_wrkt,
            ls_activity_h LIKE LINE OF it_activity_h,
            it_requested_objects TYPE crmt_object_name_tab,
            ls_requested_objects LIKE LINE OF it_requested_objects,
            it_orderadm_h TYPE crmt_orderadm_h_wrkt,
            ls_orderadm_h LIKE LINE OF it_orderadm_h,
            it_doc_flow TYPE crmt_doc_flow_wrkt,
            ls_doc_flow LIKE LINE OF it_doc_flow,
            it_header_guid TYPE crmt_object_guid_tab,
            ls_header_guid LIKE LINE OF it_header_guid.
      DATA: it_activity_h_comt TYPE crmt_activity_h_comt,
            ls_activity_h_comt LIKE LINE OF it_activity_h_comt,
            ct_doc_flow TYPE crmt_doc_flow_comt,
            ls_doc_flow_comt LIKE LINE OF ct_doc_flow,
            ref_guid TYPE guid_16,
            lt_doc_link TYPE crmt_doc_flow_extdt,
            ls_doc_link LIKE LINE OF lt_doc_link,
            ct_input_fields TYPE crmt_input_field_tab,
            ls_input_field TYPE crmt_input_field,
            ls_input_field_names TYPE crmt_input_field_names,
            log_handle TYPE balloghndl.
      DATA: lt_return TYPE TABLE OF bapiret2,
            ls_return LIKE LINE OF lt_return.
       guid_a = '0026B98B6AD11ED2B9F49BA972EC069E'
      guid_b = '0026B98B6AD11ED2B9E27FFF042682F6'
      REFRESH it_header_guid.
    * Append GUID_A to Header GUID Table
      APPEND guid_a TO it_header_guid.
    * What should we read
      ls_requested_objects = 'ACTIVITY_H'.
      APPEND ls_requested_objects TO it_requested_objects.
      ls_requested_objects = 'DOC_FLOW'.
      APPEND ls_requested_objects TO it_requested_objects.
    * Read Activity A
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = it_header_guid
          it_requested_objects = it_requested_objects
        IMPORTING
          et_orderadm_h        = it_orderadm_h
          et_activity_h        = it_activity_h
          et_doc_flow          = it_doc_flow.
      LOOP AT it_activity_h INTO ls_activity_h.
        MOVE-CORRESPONDING ls_activity_h TO ls_activity_h_comt.
        APPEND ls_activity_h_comt TO it_activity_h_comt.
      ENDLOOP.
    * Fill DOC_FLOW Structure
      ls_doc_link-objkey_a   = guid_a.
      ls_doc_link-objtype_a  = 'BUS2000115'."BUS2000126'.
      ls_doc_link-objkey_b   = guid_b.
      ls_doc_link-objtype_b  = 'BUS2000115'.
      ls_doc_link-vona_kind  = 'A'.
      ls_doc_link-reltype    = 'VONA'.
      ls_doc_link-brel_kind = 'A'.
      APPEND ls_doc_link TO lt_doc_link.
      CLEAR: ls_doc_flow_comt.
      ls_doc_flow_comt-ref_guid   = guid_a.
      ls_doc_flow_comt-ref_kind   = 'A'.
      ls_doc_flow_comt-doc_link[] = lt_doc_link.
      APPEND ls_doc_flow_comt TO ct_doc_flow.
    * Fill INPUT_FIELDS which indicate what Values where changed
    * and had to be updated
      ls_input_field_names-fieldname = 'OBJKEY_A'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'OBJTYPE_A'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'OBJKEY_B'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'OBJTYPE_B'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'VONA_KIND'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'RELTYPE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname  = 'BREL_KIND'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'BREL_MODE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'RELATIONID'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field_names-fieldname = 'RELATION_HANDLE'.
      INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
      ls_input_field-objectname = 'DOC_FLOW'.
      ls_input_field-ref_guid = guid_a.
      ls_input_field-ref_kind = 'A'.
      INSERT ls_input_field INTO TABLE ct_input_fields.
    * Update Document Flow
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        CHANGING
          ct_input_fields   = ct_input_fields
          cv_log_handle     = log_handle
          ct_doc_flow       = ct_doc_flow
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      DATA: it_saved_objects TYPE crmt_return_objects.
    * Save Changes
      CALL FUNCTION 'CRM_ORDER_SAVE'
        EXPORTING
          it_objects_to_save   = it_header_guid
          iv_update_task_local = 'X'
          iv_save_frame_log    = 'X'
        IMPORTING
          et_saved_objects     = it_saved_objects.
    * Commit Changes
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = ls_return.
    Regards,
    Saravanan.C

  • SD Document Flow

    I want to update a FI document to SD - sales order in it's document flow.
    I was able to update Table - VBFA by using Function Module RV_DOCUMENT_FLOW_UPDATE_U.
    But I still can't see the updated document flow when using VA03N for that sales order , though can see the entries in VBFA.
    Any ideas ?
    Thanks.

    It means, VBFA table is not updated properly.  Debugging the FM RV_ORDER_FLOW_INFORMATION will help you to identify the reason.
    P.S : Is there any specific reason to update the standard document flow in VBFA? AFAIK, this table is updated properly as per the configuration.
    Regards, Vinod
    Edited by: Vinod Kumar on Jun 8, 2011 4:27 PM

Maybe you are looking for

  • The SkillBuilders Modal Page.. Help me please

    I'm new about ORACLE APEX and i wanna use a plugin in my little application but I can't. The Plugin is SkillBuilders Modal Page. If there is someone who that know using of The SkillBuilders Modal Page please help me. I tried many times and many ways

  • How to Align objects

    Hello! I have a set of 5 cfselect boxes, set up in two colums of two cfselects each (Except the last one) I cannot get them to align by the objets themselves, instead they align by text, which poses an obvious aestetical issue. I have tried several s

  • Ess display regarding validity

    Dear All, We are facing a problem regarding Leave data display message in employee service portal. Suppose an employee was having 12 PL quota accrued & 3 Deducted from the period 01.01.2007 to 31.12.9999 in R3, now it has been updated & is like 01.01

  • WRT54GS Constantly "Reconnecting"

    Ver7.2 I've just replaced my old BEFW11S4 (finally died, no complaints: I think a storm surge hit it) with a WRT54GS.  No problems with setup.  Security is WEP-128 Bit (one of my older wireless NIC's doesn't support WPA).  Channel set to 11. My Probl

  • Nokia 6700 Classic sensor settings

    Hi. I have just recently bought the Nokia 6700, and was pretty impressed by the feature that allows you to view the clock, mute, reject calls etc by tapping the phone. However, I've been unable to get it to work. Any clues as to what could be wrong h