SDVFX002 : Exit_saplv60b_002 Link between SD and FI documents

Hi All,
I want to know whether I can use this exit for changing the Payment Block Key to 'blank' in case of Credit Memos. As of now, the Payment Block Key is put as 'A' by SAP for this situation.
Please let me know if I can use enhancement 'SDVFX002' for the said purpose. And if not, can you guys suggest any other alternative?
Thanks in advance.
Anand

Hi ,
Please pass PRPS-PSPNR to BSEG-PROJK field and it should work . Please check if there is valid data in BSEG for that PRPS-PSPNR. I have tried below code and it worked.
DATA:lv_wbs   TYPE PS_POSNR VALUE  '01111111', (numeric value)
           lv_belnr TYPE belnr_d,
           lv_projk TYPE PS_PSP_PNR.
SELECT SINGLE belnr
                             projk
         FROM bseg
         Into (lv_belnr, lv_projk)
         WHERE bukrs = 'XXXX'
          AND  projk = lv_wbs.
  IF sy-subrc = 0.
   WRITE:lv_belnr.
  ENDIF.
Thanks
Sri

Similar Messages

  • Broken Link between Base and Target document in 'Copy To' option

    Hi Folks,
    One of our client has been facing a peculiar issue. When the 'Copy To'  function is used to Copy document from Sales Order to Delivery and recently one instance of 'Copy To' from Delivery to A/R Invoice ,the base document got copied to the target document in each case but there was no trace of any Base Ref. left in the Target document( either in row level or Remarks), thereby the link between the Base and Target document got broken.The Base document remains with status as open.The same base document when tried again to 'Copy To', it creates the link between Base and new Target document.
    This instance had occurred recently 3- 4 times in a span of 3 months or so. In normal circumstance this never happens. The client is pretty sure they have used 'Copy To' option to copy the document from Base to Target.
    Any hints or possible reasons if one can highlight would be appreciable.
    The current version used is SAP B1 8.82 PL11 and it was upgraded more than a year back.
    Regards,
    Bharath

    Hi,
    All the data in Sales Order and Delivery are matching one to one in terms of row details,
    and Document header level.
    The missing data was Base Ref. data and Del.Date didn't get copied from base to target as shown in screen shot.
    Also i have checked it earlier regarding change of target document row details like changing item, but this will only remove the link of that particular row and remaining row link remains intact, but in this case there are many items and it doesn't seem user will have changed in all the rows.
    Regards,
    Bharath

  • Link between 313 and 315 documents

    I am using two step transfer for stor. loc to stor loc transfer by 313 (Transfer posting - Others) to move stock from Supplying stor loc to In transfer. And then, with respect to document no. of 313, place in storage by movement type 315.
    But there is no link between document nos. of 313 and 315. So it's not possbile to get report of the same.
    Kindly resolve this issue asap.

    Hi,
    There is no std. link or any configuration, you can look for round the solution with your ABAPer.
    Kapil

  • Link Between delivery and material document

    Dear All,
    how do we link between delivery document,
    and between delivery document and accounting document,
    with regards
    Mohammed Raees

    Hi there,
    Material doc is the PGI document which is created whenever there is material movement either GR or GI. In VL02N --> document flow, select the GD goods issue & click on display document. It will take you to the material doc. There is a field called material slip in that. The value stored in material display is the delivery num. That is how you link the delivery & material doc.
    From the material doc if you click on accounting docs, it will give you the A/c document num & the costing doc num (if available).
    From the material doc, select the item & click on details from ityem, it will give you the GL account for which the GI is posted.
    Regards,
    Sivanand

  • Link between 216 and 261 document

    Dear Gurus,
    I want to know link between Goods issue document and corresponding 262 document. How can i Link if the Reversal is done in MIGO with movement type 262 ( not canceling Document )
    Material A
    A   261   10 Qty
    A   261    5  Qty
    A   262    5 Qty
    A   261   10 QTy
    I want to link 261 material doc with corresponding 262 material doc .
    Rebert back if anyhow i can know which is reversed against which
    Pupose of this is for some user exit on MIGO
    Regards,
    Ishwar

    Hi there,
    Material doc is the PGI document which is created whenever there is material movement either GR or GI. In VL02N --> document flow, select the GD goods issue & click on display document. It will take you to the material doc. There is a field called material slip in that. The value stored in material display is the delivery num. That is how you link the delivery & material doc.
    From the material doc if you click on accounting docs, it will give you the A/c document num & the costing doc num (if available).
    From the material doc, select the item & click on details from ityem, it will give you the GL account for which the GI is posted.
    Regards,
    Sivanand

  • Link between billing and accounting documents

    Hi Friends,
    After creating the billing document, automatically acctg document will generate.
    How the acconting document is generating?
    Where we give the link between these number ranges?
    help me
    Thanks in advance

    Hi Raja,
    In SAP as soon as you run the billing transaction accounting document is generated along with billing creation. In transaction VKOA (FI-SD Integration) you determine the revenue GL account created in FI with the help of "AcctDetermProc." which is usually KOFI00. In this procedure there is a condition type of KOFI for revenue account. And this "AcctDetermProc."  KOFI00 is mapped in the Billing Document Type in
    transaction VOFA. under account assignment/pricing tab.
    And number range for the billing document type is maintained in VN01. Both FI number range and SD number ranges have same interval. so that both billing document and accounting document receive same number.
    Moreover, there is an "Account Key" for the revenue account aligned to condition type KOFI and same account key is mapped to the pricing procedure in order to maintain the stability.
    might help you......................................

  • Link between excise and purchase document

    how do you link the excise and GRPO or A/P Invoice in a select query?

    Hi Krishna,
    IF you need the link for Excise and GRPO or A/P Invoice.
    Try the below Links and Query.
    Link the Excise and GRPO
    SELECT *
    FROM OIEI T0 
    INNER JOIN IEI1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OPDN T2 ON T2.DocNum = T1.BaseRef
    Link the Excise and A/P Invoice
    SELECT *
    FROM OIEI T0 
    INNER JOIN IEI1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OPCH T2 ON T2.DocNum = T1.BaseRef
    Try this Query, Link the Excise and GRPO in a Select Query
    SELECT T0.[DocNum], T1.[BaseRef], T2.[DocNum],
    T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[LineTotal]
    FROM OIEI T0 
    INNER JOIN IEI1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OPDN T2 ON T2.DocNum = T1.BaseRef
    Regards,
    Madhan.

  • Link between IDOC and Accounting Document Number?

    Good afternoon-
    The problem I am trying to solve is: For a given accounting document (BKPF-BELNR, BKPF-BUKRS, BKPF-GJAHR), I'd like to know whether it was manually entered into SAP or whether it came in via electronic means such as an IDOC.
    I know that I can query the EDIDS table that the fields STAPA1, STAPA2, and STAPA3 will contain my accounting document key, but this query is very inefficient and I'd like to avoid creating a custom index to make it faster.
    Does anyone have an alternate solution to finding this link? Any feedback would be appreciated. It can be a query, a function, or a report that I can look at to use as an example.
    Regards,
    Andy

    Check BKPF-AWTYP, if document created with Idoc we can see 'IBKPF' in BKPF-AWTYP. I am not sure its standard / project dependent, but i see the same in most of the projects.
    I hope - As some one mentioned in above, you cann check user id 'Created By' also, but it may be changed any time so you can hardcode in the program.
    Thanks
    Satyasuresh Donepudi

  • Link between CE1NROC and FI documents

    Hello,
    I am working on one object in which I am selecting records from CE1NROC table based on some selection criteria and posting these records using FB01 transaction.
    The requirement is - There should not be any duplicate posting for the Sales Order + COPA Doc.
    Is there any way to check this ?
    Please suggest.
    Thanks.

    http://www.sap-img.com/sap-fi.htm
    Check if this link is of some help.

  • Link between COPA and FI documents

    Hello,
    I am working on one object in which I am selecting records from CE1NROC table based on some selection criteria and posting these records using FB01 transaction.
    The requirement is - There should not be any duplicate posting for the Sales Order + COPA Doc.
    Is there any way to check this ?
    Please suggest.
    Thanks.

    http://www.sap-img.com/sap-fi.htm
    Check if this link is of some help.

  • Link Between Drafts and marketing document

    Hi experts,
    I have created a draft credit note and after that I have added it. Now I want to see whether the credit notes are created based on the drafts or created directly.
    Can any one let me know which tables and which fields I have to choose. (is it ODRF and ORIN) ?
    Thanks in advance

    Hi Moebius,
    You are correct, I am talking about the B1 application (not DI API). Yes draft will be removed from and then final document would be added to the DB. But here what I need is
    I would like to know whether a final document is created in reference to a draft  (i.e. routed via draft) or not.
    When draft data is saved into ODRF then I suspect that there would be some key where in I can write a query and fulfill my requirement (as stated above).
    Could you please advice me that how do I proceed on this.
    Thanks in advance.

  • Relation between FI and CO document number

    Hi
    I have Fi document number from BSIS.
    Now i need to get the corresponding CO document number from COEP.
    I used to get the currency dates from COEP by passing OBjnr from PRPS and KOKRS.
    But the performance is very bad since the key field CO document number is empty.
    Please let me know how to get the CO document number from FI document number
    Thanks

    Hi All,
    To find link between FI and CO documents:
    1) Go to "BKPF-AWKEY" in table BKPF ( FI document header   -> Reference key and AUAK )
         From here you get a reference document number.
    2) Now for field name "REFBN" in table "COBK" you will get the CO document number in field   
        "COBK-BELNR"
    <Reward request removed by moderator>
    Thanks
    Mahendra Joshi
    Message was edited by: Vinod Kumar

  • Link between Item and delivery

    Hi ,
    I want to know the link between item and deliveyr. Like for example, an sales order item ( no. 10) containing 10 quantities can be delviered 5 times( each containing 2 quantities) and line item ( no. 20) can contain one single delivery. I am working on a report where i have to link all the line item to its delivery number. I am trying to achieve this through GENIl but i am not able to indetify as to how to differentiate the different deliveyr numbers. In other words, can some one help me as to how to link the delivery number to its corresponding items?

    Document flow is stored in the table VBFA in ECC.
    VBELV fied is the sales order number and in POSNV specify the line item number and speicfy VBTYP_N = J (Delivery).
    Regards,
    Bhanu

  • Link between GTM and FSCM (sales or purchase order hedging)

    Hi all,
    I am trying for a few days to have SAP GTM working (I am in an IDES ECC6 system, and as far as I know in EhP4 version). The main goal in fact is to test the currency hedging, and therefore to the link GTM and FSCM, either single-sided purchase or sales order, or two-sided . The flow I want is the following :
    -     I buy or sell a product, in GTM, through a trading contract which generates a purchase or sales order.
    -     Automatically a currency hedge is generated to cover the risk, in FSCM, I guess in exposure management.
    -     And then the financial products (derivatives) are generated as well.
    No problem to create the trading contract, no problem to generate the sales or purchase order. But in spite of the (very little) customizing I found in u201CSAP GTM => currency hedgesu201D, and some in FSCM, in u201Ctreasury and risk managementu201D, no way to have this link between GTM and FSCM, no additional document is generated like a Forward Exchange Transaction (I guess I should have this, and then a risk exposure in FSCM).
    Would you have an idea ? Is this customizing, or an additional Business Functions or Extension Set not activated ? SAP says : u201Cit worksu201D, but canu2019t find the way.
    Thank you very much for your help, I am quite looking for this link for a few days now u2026
    Best regards
    Patrick

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • Separate document no. for SD revision document and detagging relationship between invoice and SD document no.

    HI,
    Country specific settings for India - Business transactions enables SD revision vide table TE872_SDCTRL_IND.
    Whenever SD revision takes place system issue similar document no. as that of invoice and tagged it with XBLNR as per standard process.
    Now issue that if that invoice is reversed, subsequent SD also gets reversed.
    So business requires to have separate document no. for SD revision document and detagged relationship between invoice and SD document no.
    I have explored event R507, 0010, 0060 and R436 but couldn't find input structure where such separate document can be assigned.
    So can you provide hint which can assist in issue resolution?
    Regards,
    Paresh

    Check this thread, if this helps.
    [url] Link between MKPF table and EKKO or RBKP table [url]
    I've done this as well earlier to create a custom document flow for archived documents where from the EBELN i've found all the related documents. Hope this helps.

Maybe you are looking for