IDOC-Segment Created a idoc document against Billing document

Dear All,
Thanks in  advance.
Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
so i want to add the segment which it was missed during generation of IDOC document against billing document.
Example:
a) IDOC document misses one segment let suppose "Seg1".
b) In "Seg1" it have only one field let suppose "Field1".
c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
Please help on this issue.
Regards,
Sridhar.

Hello,
          If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
         In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
        You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
Thanks and Regards,
Venkat Phani Prasad Konduri

Similar Messages

  • Issue with copy control of Delivery document to Billing document

    Hi All,
    I am having some issue with copy control of Delivery document to Billing document.
    I am having two line items in Delivery documetn, one is for item to be delivered to customer and other which is created due to batch determination.
    Now , when I create billing document (VF01) with reference to this delivery document , I want only one line item (for the one which needs to be delivered to customer).
    I have used following things in  copy contro from ZLF to ZF2:
    Copying requirements: 004 ( Deliv-related item)
    Data VBRK/VBRP: 007 "(Inv.Split (Rec/Div))
    Is it correct or shall I use something else, so I have only one line item in Billing document.
    Regards
    Nidhi

    Pls. search the forum.
    Pls. refer the below link -
    Line with 0 quantity for main item with batch split
    Thanks

  • Unable to Post FI Document through Billing Document in SD(For Credit Card)

    Hi Experts,
    I was able to successfully post FI document through Billing document in SD.
    The Problem is encountered when a Sales Order is created
    for Credit Card customers.
    When the sales order is created the credit card information we are prompted with an error message Payment terms is a required field for G/L Acc so and so...
    The payment terms field in the posting key 01 is marked required and the same field for the reconcilation account is optional. However this config has not created any problem for the Non credit card sales orders.
    If any one has faced the same problem. Please help me out in this issue. I have been working on this for a long time.
    Thanks for your help...
    Thanks,
    Chaitanya

    Hi Folks,
    Please refer SAP OSS Note 119047.
    In the OSS Note they have mentioned..
    Pass the payment terms to the field
    xaccit-zterm = '0001'. in the User Exit.
    Program : LV60BF0C,
    Customer Function ]002'.
    Include File ZXVVFU02.
    Still I don't understand why SAP doesn't support payment terms for Credit Card. But when a Sales Order is  created without credit card the field xaccit-zterm  has a value.
    Thanks,
    Chaitanya K

  • Copy for billing documents (sales document to billing Document)

    Hi Experts :
    I have a position in sales document definided type G in relevance for billing.
    Then the control copy is Sales Document to Billing Document with billing quantity definided type  B (delivered quantity less  invoiced quantity),
    The problem is presented because the Billing quantity considered deliverys with no  accounting documents.
    Veronica Barrientos
    Construmart S.A.
    Thank's for your cooperation

    Hello Veronica,
    I had faced similar problem in one of my project & hence used the standard setting & by avoiding use of 'G'. I used 'A' or 'B' instead as per requirement.
    I suppose you may be trying to use 'G' for Third Party Scenario.
    Regards,
    Rajesh Banka

  • Problem with copy control from sales document to billing document

    Hi,
    I have a copy control from a sales document to a billing document,
    which is copying everything from the sales document, except the
    conditoin values. Any ideas on why will a copy routine won't copy the
    condition values from a source document? I don't even have a document
    pricing procedure assigned to my billing document. Any setting, that
    we can do to for the conditions to get copied from the sales document
    to the billing document...just as they are in the sales document?
    Thanks for the help in advance.
    Regards,
    Vijay

    In IMG,
    Implementation Guide for R/3 Customizing (IMG)
    -->Sales and Distribution
       -->Billing
          -->Billing Documents
             -->Maintain Copying Control For Billing Documents
                -->Copying control: Sales document to billing document
    What setting do you have for your source sales document type to target billing document type? Select the row that shows the document type you are interested in and double click on item(on the left pane). Select the item category and do display. What value do you see under the 'Pricing Type' and 'Price Source'?
    May be that is where some config setting is missing.
    Srinivas

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • How to insert the standard idoc segment in the idoc

    Hi Experts!
    We  are using  SRM 7.0.Wo got a requirement as below:
    In our organiation there will be both regular employees and the non-employees.For non-employees address will not be maintained in Tcode PA20 in backend ECC HR  system.Where as for employees address will be maintained.
    As the HR replication will be done by scheduled jobs, in case of non employees replication is not happening due to the missing address in PA20.In order to avoid this we are building some logic and as part of it we need to add the standard IDOC segment  'E1P0006' in the main idoc as this particular segment is for address and it is missing due to the missing address in PA20 for non-employees where as this idoc segment will be there for employees.
    As am very much new to idoc concept can some one help me how to handle this if any one of you came across this kind of scenario.
    Please find the attached document for the idoc seq we have.
    Thanks in advance.
    Regards,
    Kalyani

    1. Open the form
    2. Choose Tools--> Diagnostics
    3. In the block field choose $DESCRIPTIVE_FLEXFIELD$
    4. Field will show the list of all the DFF's enabled for that form.
    5. Choosing one will display the name of the DFF in the value field.
    Thanks
    Nagamohan

  • FM to create Sales Order from reference billing document

    Hi,
    I need to create a sales order from a reference billing document. Please tell me if there is any function module/BAPI to do that.
    Thanks in advance for the help
    Regards,
    Varun

    Hi
    <b>SD_SALES_DOCUMENT_COPY</b> copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating.
    <b>SD_SALES_DOCUMENT_SAVE</b> create Sales Doc from the copied document
    create subsequent document
    REPORT Z.
      data: w_auart like vbak-auart,  "current SalesDoc type
            w_auara like tvak-auara,  "Subsequent SalesDoc type
            w_vbak  like vbak.
      parameter p_vbeln like vbak-vbeln.
    at selection-screen on p_vbeln.
      SELECT SINGLE auart FROM vbak into w_auart
        WHERE vbeln = p_vbeln.
      if sy-subrc <> 0.
        message e398(00) with 'Sales Doc' p_vbeln 'not found'.
      endif.
    start-of-selection.
      SELECT SINGLE auara FROM tvak into w_auara
        WHERE auart = w_auart.
      if sy-subrc <> 0 or w_auara is initial.
        message e398(00) with 'Subsequent type not defined for' w_auart.
      else.
      1. copy
        CALL FUNCTION 'SD_SALES_DOCUMENT_COPY'
             EXPORTING
                  i_auarn       = w_auara
                  i_vbeln       = p_vbeln.
      2. paste
        CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
             IMPORTING
                  evbak         = w_vbak.
      3. commit
        COMMIT WORK.
      4. report
        write: / 'Sales Doc', w_vbak-vbeln, 'created.'.
      endif.
    regards
    vinod

  • Create Credit Memo referenced to Billing Document - Condition Types

    Hello,
    I need help on this particular situation, your help would be greatly appriciated.
    I try to create a Credit Memo(VA01) with reference to the Billing Document, but I don't want to see on my Credit Memo a particular Condition Type from the Billing Document. Configuration solution or ABAP solution? and how?
    What the system does now is, it copies all the Condition Types from the Billing Document to the newly created Credit Memo.
    Thank you all

    Hi,
    Create a new pricing procedure without the condition type you donot wish to appear in the credit note. create/ use a different document pricing procedure for the credit note, do the required assignments.. this will meet the requirements
    Regards,
    Ajit

  • Posting of incoming payment against billing documents

    hi to all
    How to post the incoming payment using the billing document reference. Since we already posted sales order and there upon Billig Document was generated for the same.  Now we need to clear the customer against the billing document.
    up to my knowledge it will be cleared using the Tcode= F-28
    Is there any other TCodes to post the incoming payment taking with reference of billing document
    pls help me in this issue, I was badly struck up at that matter
    thanks in advance
    kishore

    hi,
    Just go to FB03 click enter and then
    Company code
    Fiscal Year
    Ledger
    Document type against customer invoice DR and then if u hav an idea abt the customer invoice doc then give doc number ....other excute and search for the customer no....
    And then double click on the document
    then goto ENVIRONMENT -
    > Document over view -
    > relation ship brower click
    then you can see all the relating document to that account  i.e account doc,profitcenter doc ,material ,oytbond delivery doc ,billing doc etc...
    if useful assign points.....
    regards,
    santosh kumar

  • Any FM/methods to update idoc segments without changing idoc status

    Hi All,
    My requirement is a reprocessor program which fills up some fields in the idoc segment before posting. So, after updating the segments, the idoc status should remain as before.
    Is there any function modules or methods to update idoc fields in segments without changing the idoc status?
    I have tried the FMs EDI_DOCUMENT_OPEN_FOR_EDIT, EDI_CHANGE_DATA_SEGMENT and EDI_DOCUMENT_CLOSE_EDIT, but it changes the idoc status.
    Thanks,
    Arun Mohan

    As for FM to do this, i don't know if there are any, but i think you can go directly to the tables with the IDOC data and change them without triggering the changes in status like FM do. Still, i am not sure this is completely true, but you could give it a try. Also, i don't know if this is the best way to do it, because of those legal/audit questions mentioned by Thomas.
    Here is a sample code of a program we have to change a field in a segment of WPUUMS.
    *& Report  YRE00021INTPG
    REPORT  yre00021reppg.
    TABLES: edid4 ,
            edidc ,
            mean .
    * Variaveis Auxiliares
    DATA: t_edidc TYPE edidc OCCURS 0 WITH HEADER LINE.
    DATA: t_edid4 LIKE edid4 OCCURS 0 WITH HEADER LINE .
    DATA: BEGIN OF t_docs OCCURS 0,
            docnum LIKE edidc-docnum ,
          END OF t_docs.
    DATA: wa_e1wpu02 LIKE e1wpu02 .
    DATA: wa_e1wpu03 LIKE e1wpu03 .
    DATA: t_itedidd LIKE edi_dd40 OCCURS 0 WITH HEADER LINE ,
          t_itedidc LIKE edi_dc40 OCCURS 0 WITH HEADER LINE ,
          fw_itedidc LIKE edi_dc40 ,
          fw_itedidd LIKE edi_dc40 .
    DATA: l_matnr TYPE mara-matnr,
          l_tam TYPE i.
    DATA: l_idoc_number TYPE edidc-docnum.
    * Ecran de selecção
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_docnum FOR  edid4-docnum ,
                    s_credat FOR  edidc-credat DEFAULT sy-datum ,
                    s_cretim FOR  edidc-cretim .
    PARAMETER:      p_mestyp LIKE edidc-mestyp DEFAULT 'WPUUMS' ,
                    p_status LIKE edidc-status DEFAULT '51' .
    *SELECTION-SCREEN SKIP.
    *PARAMETER:      p_ean11 TYPE mean-ean11.
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN.
      IF p_status <> '51'.
        MESSAGE e001(yre) WITH 'Apenas pode modificar IDOCS com erro'.
      ENDIF.
      IF p_mestyp <> 'WPUUMS'.
        MESSAGE e001(yre) WITH 'Apenas pode lançar WPUUMS'.
      ENDIF.
    *AT SELECTION-SCREEN ON p_ean11.
    *  SELECT SINGLE * FROM mean WHERE
    *    ean11 = p_ean11.
    *  IF sy-subrc <> 0.
    *    MESSAGE e001(yre) WITH 'Ean não existente'.
    *  ENDIF.
    START-OF-SELECTION.
      SELECT docnum INTO TABLE t_docs FROM edidc
                         WHERE status =  p_status
                         AND   mestyp =  p_mestyp
                         AND   docnum IN s_docnum
                         AND   credat IN s_credat
                         AND   cretim IN s_cretim .
      CHECK sy-subrc = 0 .
      LOOP AT t_docs.
        CLEAR : wa_e1wpu02.
        SELECT * FROM edidc INTO TABLE t_edidc
          WHERE docnum = t_docs-docnum.
        CHECK sy-subrc = 0.
        SELECT * FROM edid4 INTO TABLE t_edid4
                      WHERE docnum = t_docs-docnum AND
                            segnam = 'E1WPU02'.
        CHECK sy-subrc = 0.
        SORT t_edid4 BY segnum.
        LOOP AT t_edid4 .
          wa_e1wpu02 = t_edid4-sdata.
          WRITE wa_e1wpu02-artnr TO l_matnr NO-ZERO.
          CONDENSE l_matnr.
    *      l_tam = STRLEN( l_matnr ).
    *      IF l_tam <= 6.
            SELECT SINGLE ean11 INTO wa_e1wpu02-artnr FROM ytre00004 WHERE
              codcurto = l_matnr.
            IF sy-subrc = 0.
              WRITE : /1 'Código ', l_matnr, ' alterado para ', wa_e1wpu02-artnr.
            ELSE.
              WRITE : /1 'Código ', l_matnr, ' não encontrado na tabela de conversão'.
              CONTINUE.
            ENDIF.
    *        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    *          EXPORTING
    *            input  = p_ean11
    *          IMPORTING
    *            output = wa_e1wpu02-artnr.
    *      ENDIF.
          UPDATE edid4 SET   sdata   = wa_e1wpu02
                       WHERE docnum  = t_edid4-docnum
                       AND   counter = t_edid4-counter
                       AND   segnum  = t_edid4-segnum .
          IF sy-subrc <> 0 .
            ROLLBACK WORK .
            WRITE: / t_edid4-docnum .
          ELSE.
            COMMIT WORK.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
    END-OF-SELECTION.

  • Idoc segment version in idoc type

    hi,
    we have just upgraded our R/3 system from 4.6c to SAP ECC 6.0. We then tried to send idocs to SAP XI 3.0 SP 20. However the idocs failed due to wrong segment version of idoc. It did not match the loaded metadata in XI. I know that in WE20 you can control the segment version used to send to XI. In the communication channel in XI you can also set the segment version.
    So my question is: Is the correct way to handle sytems requiring diffenrent verions to import the newest metadat in idx2 and then  control the versions asper the above paragraph?
    Any comments are apreciated.
    kr Rasmus

    Hi,
    for sending IDocs to XI no adapter is necessary. It should be enough to reload the metadata in idx2:
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm
    Regards
    Patrick

  • How to create a spool for the billing document

    Hi all
    In the ALV report i am getting the
    List of billing documents
    on the selection of any billinfg document
    i wanted to create the spool of the same
    is there any way for the same .
    please help.

    Hi
    check with the fun module to get the SPOOL ID of the billing doc
    RSPO_RW_SPOOLJOB_PARAMS
    Reward points if useful
    Regards
    Anji

  • IS-Retail POSDM- double posting of  material documents and billing document

    Hello All,
    I had initially posted this question in "Industries Solution General" forum. Reposting it in the appropriate forum-
    We have a nightly job for program "RWPOS_PARA_ENQUEUE" which processes all WPUBON idocs (sales info) that comes in from POSDM. Sometimes we have noticed that for one idoc 2 material documents and 2 billing documents are being created with the same information.
    Note that this happens sporadically and we have no idea why or when it can happen. Also, we have duplicate checks in POSDM and this happens only when the idoc flows into ECC from POSDM i.e. one sales idoc posts 2 sets of documents for no apparent reason. Is there any way to prevent this? Why is this happening? Your inputs will be really appreciated.
    Thanks,
    Smitha

    hi,
    Just go to FB03 click enter and then
    Company code
    Fiscal Year
    Ledger
    Document type against customer invoice DR and then if u hav an idea abt the customer invoice doc then give doc number ....other excute and search for the customer no....
    And then double click on the document
    then goto ENVIRONMENT -
    > Document over view -
    > relation ship brower click
    then you can see all the relating document to that account  i.e account doc,profitcenter doc ,material ,oytbond delivery doc ,billing doc etc...
    if useful assign points.....
    regards,
    santosh kumar

  • Populating Trading Partner in Accounting document from Billing document

    Hi, How to pass the trading partner information to the FI G/L details (BSEG-VBUND) from a Billing document (VBRK-VBUND)? I am understanding through User exit EXIT_SAPLV60B_004 we can pass the information. Is there any other way (User exit/BAdi/IDoc) to pass the information? Because in one our system EXIT_SAPLV60B_004 is not active but BSEG-VBUND is getting populated properly. Thanks.

    Hi,
    Once you post collection against this invoice in F-28 and clear it against collection in F-32 ,the invoice status will be shown as cleared in document flow.
    Regards

Maybe you are looking for

  • [SOLVED]mounting cdrom and usb devices doesn't work

    Hello, i have trouble mounting my usb devices. automount doesn't work and i can't mount them manually even as a superuser. here's the output of mount command: mount: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper pr

  • Mainstage 2 crashes only when playing live

    Hey guys, I was hoping somebody out there might have some help on this.  My mainstage rig works perfectly during practices, but has recently been crashing every single live show, randomly during songs.  I use EXS24, some built in organs and synths, K

  • Blocking an item in SO created by a PO via EDI

    Hello experts, i am in a SAP R/3 Release 4.6C, working with EDIs and there is this problem i can't fix. We create a PO via Edi and the system creates a SO from it. The ORDCHG is also configured properly and the changes go fine. The problem is when we

  • New Search Field in OIC Payments Page  - Not Working

    Friends i created a new Search filed using"Personalization" ( xx_role_name) and created a new mapping to the map the custom filed to actual column ( xx_role_name to role) but its not working and my results are not matching. Not sure , which step i mi

  • Wrong Unit displaying in the QRY

    Hi Friends ,             I have a field in the report which is computed by Price/Qty , I have the price displaying in $ and the Qty displaying in EA. So the final field displaying in my report is $40/EA, but I wanted only $40. Please advice where I n