Issue with linking Activity to predecessor Document Line Item

Hi,
We are trying to create an Activity and programatically link it to the line item of the predecessor Document ( Complaint transaction). The predecessor document number and line item should show up in the 'Relationships' tab of the activity. When this is done manually, it automatically generates a link in the document flow at Header level linking the Activity to the Header of the Complaint.
However, we are unable to generate this link programatically and we are either able to link the document only to the Complaint Header, or if we link to Item, it does not show the apropriate link in Doc flow of the Activity. Also, the Activity does not show up in the Tasks tab at Item level of Complaint - which happens when we save the data manually.
Any clues regarding what can be done to link document at Item level will be highly appreciated!
Thanks,
Ipshita

Ipshita,
If you are using the FM BAPI_ACTIVITYCRM_CREATEMULTI to create the Activity, then pass the Guid to the Doc flow parameter. The sample code to add the doc_flow is as below:
Document flow-Opportunity
      gs_docflow_bapi-ref_guid   = gs_activity_bapi-guid.
      gs_docflow_bapi-objkey_a   = gc_op_guid.
      gs_docflow_bapi-objtype_a  = c_obj_typ1.                      "'BUS2000111'. (say Opportunity)
      gs_docflow_bapi-objkey_b   = gs_activity_bapi-guid.
      gs_docflow_bapi-reltype    = c_vona.                          "'VONA'.
      gs_docflow_bapi-ref_kind   = c_ref_kind.                      "'A'.
      gs_docflow_bapi-brel_kind  = c_rel_kind.                      "'A'.
APPEND gs_docflow_bapi TO gt_docflow_bapi.
Create Activity
        CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
          TABLES
            header          = gt_activity_bapi
            headerx         = gt_activity_bapix
            document_flow   = gt_docflow_bapi
            created_process = gt_created_process
            return          = gt_return2.
Commit Work
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
Hope this works for you.
Regards,
Shyamak

Similar Messages

  • Issue with Net price at Purchase order / Line item

    Dear All,
    I have an issue in the Purchase order, given below is the detail of the issue.
    PO/LI1 Consists a material A (Grid based), and with a condition record i have maintained sizewise pricing.
    Eg:  Size L - 1usd per 1, Size M - 2usd per 1 and Size S - 3usd per 1. Assume the quantity for each size been 10
    Thus at a Schedule line item level it would be as follows
    Grid   |  Schedule Qty  |  Net Price
    S              10                  3
    M              10                  2
    L               10                  1
    Thus at a PO/ Line item level the net price should be (6/30)that is (net value/net quantity)  = 0.2 per 1, in my system it doesnt show like as 02. per 1, it shows the net price of size L (in this instance it picks the price of size L and shows it as the NET PRICE at PO/LI Level
    What could be the possible reason this could happen, i believe this is a problem.Is there a place in configure where i can change the system to capture Net price at PO Line item =(Net Value / Net quantity) rather than picking the price of the size L.
    Other info
    Size L is the last Delivery Schedule line number
    Hope my question is clear.
    Thanks & Regards
    Shabeen
    Shabeen Buhary
    Edited by: shabenn on Dec 17, 2010 10:13 AM

    Hi,
    Even though you maintained different Prices for Different grids only default grid value only displayed at line item level. But if you do GR for those grids valuation will happened at as you mentioned the purchase order.
    regards,
    Siva reddy

  • 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

  • I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!

    I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!
    I have created a navigation system on the master pages and set the presentation to links only mode. I also have other links scattered throughout the program, like a linkable table of contents, etc. Some of them work, some of them don't. Not sure why. Anyone out there having similar issues? Or have any idea on how I can solve this issue? Any help would be appreciated!
    Thanks!

    Links should not create any problems in Keynote.  If they are set up correctly on text, the text will be underlined. Objects that have links will have a curved arrow bottom right, if you click the arrow a popup will display the link information.
    Try this repair for Keynote,  ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in.
    4  
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive

    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions

    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store
    let us know if this helped

  • Issues with play back in the time line

    I am having issues with play back in the time line.
    am working with footage captured off a DVCAM Tape in a DV/DVCPRO NTSC Time line.
    My settings are set to match the source footage so I dont have to render. What ends up happening is the footage at times plays fine and smooth and then out of no where it will start playing choppy. like its lagging. But the Audio stay fine. I use to have to problem before but then it stopped.
    Now its back and I can not figure out why it does this. Usually a restart of the system would help solve it but now it still keeps coming back.
    i have tried different settings in the RT menu and still seem to be having the same problem.
    i am running the footage of 3 1TB drives in Raid0 and the System has 16GB of Ram. So I dont see this being the issue.
    any ideas?

    of course not, the system boots from a 320GB Western Digital Hard Drive. (the one that came with the system)
    I have a feeling that its not the Hard Drive, but no idea what it could be.

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • SD - Accounting document line items are generating for each item

    Hi all of you,
    We have done account determination for SD. Accounting documents are also generating, but with in the invoice accounting document, number of line items are generating for each item with in the sales order, standard invoice type is F2 like -
    Item 001 - X Material
    Item 002 - Y Material
    Item 003 - Z Material
    The accounting document is -
    Line Item 001 - Customer Ac Dr
    Line Item 002 - Discount A/c Dr
    Line Item 003 - Sales revenue
    Line Item 004 - Discount A/c Dr
    Line Item 005 - Sales Revenue
    Line Item 006 - Discount A/c Dr
    Line Item 007 - Sales revenue
    Line Item 008 - VAT
    Even, in my experience I did not find this type of entry and the sales revenue and discount accounts are same with in the COA and is posted with in the plant.
    Please give me your valuable suggestion to rectify the above issue.
    Regards,
    Ramki
    Edited by: Ramki on Nov 5, 2009 10:06 AM

    Dear Ramki,
    This is SAP Standard. System generates Accounting document line item for each Line items in Invoice.
    This is standard & also required bacuase say you have different Material types in single Invoice (e.g.Material & Service items, Trading Goods, etc). The valuation class assigned to these Material Types may be different & you might want to post revenues from these Line items in different GL Accounts.
    Hope this helps. .
    Thanks,
    Jignesh mehta

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • PO item text is copied to the Financial Document line item text

    A user have requested that the PO item text is copied to the Financial
    document line item text, to aid them in analysis of the GR/IR account.
    is there any solution to implement this ?

    There is no standard setting for this requirement. Check with your ABAP team for this.

  • Post long text for document line item via FI-GL Inbound IDoc

    Hi guru,
    I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
    I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
    In the extension ZFIDCP02 and under E1FISEG, I am add my segment  ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
    I am send  ZFIDCP02 IDoc via IBM Websphere no error  but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment  ZITEXT not post in FI-GL.
    How can I  post long text for document line item (ZITEXT) in FI-GL ?.
    and I'm mean post ZITEXT to bank statement via IDOC.
    Please throw light on this  and  may be I  'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
    Thanks in advance,
    Akkapong Pirachai
    CAT Telecom
    Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AM

    Close question because long time for answer.

  • Material Quantity difference document line item for HU

    Dear Experts,
    When I try to clear differences in LI21,  i get the error message as above.
    Error Message : 'Material Quantity difference document line item for HU'
    Any idea why this error occurs?
    Regards,
    Shetty

    Hello Shetty,
    It may be due to some stock inconsistency. You may try iin case of  a non HU managed storage location HU to run LX23 and it can fix discrepancy overwrting MM-IM with LE-WM data. But if it is a HU managed then you can run HUDIFF transaction but only to see if there is stock differences not to fix anything, usually SAP Support (Development Support) does that job.
    Have a nice day !!

  • SD document line items Vs FICA accounting document line items

    Hello All,
    What is the interface we use in SAP,  between the SD and FICA which will determine line items in FICA document with regard to SD line items.
    SD : How we do configuration or mapping between sd sales order and billing document to determine billing document line items  based on sales order line items ( for example : material group, profit center, cost center ?)
    FICA: what interface / Configuration we use to determine how many line items should appear in the FICA document based on billing document line items.
    Regards,
    John.

    Integeration of SD to FICA is based on the img settings done under the node - SPRO - Financial accounting ( new ) - Contract accounts receivable and payable - integration - Sales and distribution .
    Creation of FICA document based on SD is routed through the event 4000 and the details are detrived through event 4030 .
    Would suggest you to go through events 4000 and 4030 .
    Regards ,
    Dewang

  • [svn:fx-trunk] 12982: Fix for issue with exposing accessible names for combobox list items

    Revision: 12982
    Revision: 12982
    Author:   [email protected]
    Date:     2009-12-15 20:44:23 -0800 (Tue, 15 Dec 2009)
    Log Message:
    Fix for issue with exposing accessible names for combobox list items
    QE notes: none
    Doc notes: none
    Bugs: n/a
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as

    Add this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
    margin-bottom: -2px;
    Your nav p will then look like this:
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
              margin-bottom: -2px;

  • Material document line item - inventory valuation affected ?

    Hello
    In the framework of building a stock report, I'm trying to know if a material document line item has affected inventory valuation that is to say if a corresponding accounting document line item has been posted.
    Explored solutions :
    - there is no link between MSEG and BSEG
    - I tried to look at Quantity string (BUSTM) in MSEG and looked at Quantity strings parameters in T156M but couldn't find a parameter of the value string mentionning if it affects inventory valuation or not
    Thanks a lot in advance for your inputs
    Regards

    Hi,
    MKPF is for material document header table MSEG is for material document item table
    Creation date will be at the header table, use document number to link both the tables.
    Regards
    Merwyn

  • Can not change the field BSEG-REBZG on the document line item

    Hi,
    I am not able to change the invoice reference field on the document already posted. I have tried config. settings on change document line items but unsucessully.
    The problem is with the field BSEG-REBZT, if the field value  is "V" RESIDUAL item I am not able to change it but if this field value is "Z" I am able to change it.
    Can anyone who have come across this situation please guide me on this.
    Thanks,
    Srini

    Hi Eli,
    Thanks a lot for your resolution. I have assigned points to you.
    Unfortunately my problem has not been solved inspite of implementing the so mentioned SAP notes.
    Do we need to do anyother settings? Can you please guide me?
    Thanks,
    Srini

Maybe you are looking for

  • How do i rename multiple files at the same time on a MAC?

    I have been a mac user since 4 years now yet i cannot figure out how to rename multiple files in mac. In Pc i used to slect all and rename one e:g "ab.jpg" and the restwould be "ab (1).jpg" automatically. but in the mac its way too hard to do this on

  • How do I paint graphics in a JFrame created by netbeans GUI builder?

    I hope it's ok to ask netbeans questions here. Frustrated with Eclipse I'm trying netbeans. I went through the tutorial for the UI builder and I have no trouble laying out the usual swing widgets like JPanels, JButtons, etc. What I haven't figured ou

  • Mailing photos with iphoto and gmail

    I use gmail as my primary email account. I don't use apple mail and I'm not necessarily interested in configuring Apple Mail to use my gmail account. What I'm interested in is using iphoto to email photos out using gmail. I'm a recent windows convert

  • Problem in saving a grafic as a jpeg,the grafic is drawed on a jpanel!

    I can't save a grafic as a jpeg! When i save the jpanel content i get a blank picture! Can someone give an example ? Thanks in advance! Message was edited by: kynamar

  • Adobe Ultra (Virtual Sets)

    Hopefully you guys don't shoot me for posting this here, but since all's that's left of Adobe Ultra is sitting in Premiere, I figured this is as close as it will get. Hoping some of you legacy people can help me.  I need to resurrect my CS3 to bring