How to get Account Identification Number  from a different component

Hi,
My requirement is
I have created a  zview in component  ICCMP_BT_IRHIST.
I am navigating from one view in ICCMP_BT_IRHIST to this zview.
I want to get the account identification number in this zview.
The account identification (attribute is present in this component CRMCMP_BPIDENT.
For getting the account identfication number
i m writing this code in the layout of the zview
TRY .
        lr_cuco  ?= controller->get_custom_controller( 'CRMCMP_BPIDENT/CuCoBuPa' ).
    CATCH cx_sy_move_cast_error.
      RETURN.
  ENDTRY.
  check lr_cuco is bound.
  lr_entity ?= lr_cuco->typed_context->SEARCHCUSTOMER->collection_wrapper->get_current( ).
  check lr_entity is bound.
  lv_account_name = lr_entity->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
But im not able to get the account identification number  the problems are
lr_entity is initial ...where as   lr_cuco is bound only....to this view....
waiting for suggestions....
Regards,
Sijo....

Hi ,
In the IC Agent Role there is predefined Global Context Node, You can use the Following
  DATA: lr_gdc       TYPE REF TO if_crm_ui_data_context.
  lr_gdc     = cl_crm_ui_data_context_srv=>get_instance( me ).
  lr_entity = lr_gdc->get_entity( name = if_iccmp_global_data_cont_con=>gdc_currentcustomer ).
Based upon ur Rrequirement you can use
GDC_CURRENTBT
GDC_CURRENTCASE
GDC_CURRENTCONTACT
GDC_CURRENTCUSTOMER
GDC_CURRENTINBOXITEM
GDC_CURRENTIREC
GDC_CURRENTCONTEXT
GDC_CURRENTIBASE
GDC_CURRENTIOBJECT
GDC_CURRENTSERVICETICKET
Parameters in the  if_iccmp_global_data_cont_con
Regards
Vikranth

Similar Messages

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • How to get Account identification number in a ZVIEW ( Empty View )

    Hi  ,
    I created a  ZVIEW in  component ICCMP_BT_IRHIST from an existing standard view in this component im navigating to ZVIEW. In the Zview i want to get the account identification number.In the ZVIEW
    I am writing this part of code
    <%
    data: lv_account_name type string,
            lr_entity       type ref to cl_crm_bol_entity,
            lr_cuco         type ref to  CL_CRMCMP_B_CUCOBUPA_IMPL,
            lv_account_id   type string,
            lv_account_type type string.
      TRY .
            lr_cuco  ?= controller->get_custom_controller( 'CRMCMP_BPIDENT/CuCoBuPa' ).
        CATCH cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
      check lr_cuco is bound.
      lr_entity ?= lr_cuco->typed_context->SEARCHCUSTOMER->collection_wrapper->get_current( ).
      check lr_entity is bound.
      lv_account_name = lr_entity->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
    %>
    eventhough lr_cuco is bound lr_entity is not getting populated.
    as a result im not able to get the account identification number in the ZVIEW.
    Any suggestions on this ...................
    Regards,
    Sijo.......
    Edited by: sijokjohn85 on May 7, 2009 3:12 PM

    HI,
    I have a similar kind of Issue and would like to k now How you resolved the issue.
    I have two standard components, I am trying to read the custom controller of Component-1 in component-2.
    The Object is bound but the value is empty, Similar to what you experienced.
    Any tips will be really helpful.
    Cheers..

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • How to get purchase order number from delivery number?

    hi all,
    how to get purchase order number and item if i have only delivery.
    and in same way how to get po number and item if i know only batch number.
    kindly give me some solution i need this urgently.
    thanks in advance.

    Check the logic below:
    * Selecting the Sales Documents from VBFA for corresponding Invoice
        SELECT vbelv
                     posnv
          FROM vbfa
          INTO TABLE gt_itab3
         WHERE vbeln EQ gt_itab5-vbeln
           AND posnn EQ gt_itab5-posnr
           AND vbtyp_n EQ 'J'.
        IF sy-subrc EQ zero.
          SORT gt_itab3 BY vbelv posnv.
        ENDIF.
      ENDIF.
      IF NOT gt_itab3 IS INITIAL.
    * Selecting the Purchase Orders from VBFA for corresponding Sales Documents
        SELECT vbeln
               posnn
          FROM vbfa
          INTO TABLE gt_itab4
       FOR ALL ENTRIES IN gt_itab3
         WHERE vbelv EQ gt_itab3-vbelv
           AND posnv EQ gt_itab3-posnv
           AND vbtyp_n EQ 'V'.
        IF sy-subrc EQ 0.
          SORT gt_itab4 BY vbeln posnn.
        ENDIF.
      ENDIF.
    Batch number will be there in delivery item.
    Regards
    Kannaiah

  • How to get MM Invoice number from FI Accounting document number

    Hi,
    I am writing a query (OPEN ITEMS FOR ACCOUNT PAYABLE)through SQVI. We need to display MM Invoice number from FI Accounting document number . Please let me know the table name from where I can join FI document number and can retreive MM Invoice number.
    Thanks
    Rama

    hi,
    use this.
      SELECT belnr
               awkey
               INTO TABLE it_bkpf
               FROM bkpf
               FOR ALL ENTRIES IN it_mkpf
               WHERE awkey = it_mkpf-awkey.

  • How to get Cost Center number from a Customer

    Hi Sap Experts,
    I have a customer number from xd03. But I would like to know which is the cost center used by this customer, how can I find that?
    Because I'm getting an warning message when using FB08, it points to the Tax Jurisdiction issue. I believe at some point, it's checking the Jurisdiction field of the cost center.
    Regards,
    CHL

    Hi,
    Thank you for the reply.
    The thing is, when I run FB08 for a specific document, i'm getting this warning Msg: Account assignment object has jurisdiction code XX, line iten XX AAAAAA.
    I checked already the configurations for jurisdiction code in customer master data and the path "define tax jurisdiction code" with spro.
    I noticed something, during the debug at some point its reading the cost center's jurisdiction number, and will compare it with customer's master data jurisdiction.
    But if there's no cost center it will process fine.
    It's in the program SAPLKAIP, form CostCenter_Check. Not sure if it's SAP standard code.
    Cheers.
    CHL

  • How to get Shopping cart number from TECH_INFO Guid approval offline

    Hi,
    When a user approves a shopping cart via e-mail (offline approval), then in transaction SOIN we can the mail which is like this:
    TECH_INFO_A=00F3D1395134D34D34D37DFBE75E81512DB5DB5FBE&submit_a=Approve by e-mail&TECH_INFO_R=444244093D34D34D34DF7EF9D7A0544B6D76D7&NOTM_OUT=&EOM=1
    How can I retrieve shopping cart number from these guids ?
    Thank you very much.
    Regards,
    Peggy

    Hello,
    E-mail data extraction is done by method EMAIL_DATA_EXTRACT from class /SAPSRM/CL_OFFLINEAPP_INBOUND.
    With the exporting parameter EV_WIID, call function BBP_PDH_WFL_OBJECT_WI_GET: you will get the Shopping Cart number.
    To have an idea of the whole mail data extraction process, check report /SAPSRM/OFFLINEAPPROVALGET
    Regards.
    Laurent.

  • How to get a decimal number from three single byte numbers

    i'am in a difficult situation. I have motor which provides me the number of steps moved as three numbers of length one byte.I 'am attaching the program with this message. Here the commands from index 2-4 outputs will provide the number of steps moved. But these are numbers with a single byte length(<256). So how can I get the corresponding decimal number from these three single byte length numbers. please reply
    Attachments:
    stop2.vi ‏11 KB

    Without knowing what motor you are using, I'm guessing that you probably need to use the Join Numbers to combine the bytes into a U32.  The other option is to use the Type Cast function.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to get Purch.Ord. number from trans. /Nmir5 once you have Inv.Doc.nr.

    Does anyone knows how to get in a program PurchaseOrder number from transaction /Nmir5 once you have Inv.Doc.nr.(Invoice nr)
    I was looking for tables having data element RE_BELNR but did not found a suitable table(maybe more tables are included)
    Thank you in advance . I will be glad to award solution

    Hi
    Use the<b> RSEG</b> table which stores the Invoice doc No BELNR and FIscal year GJAHR, PO and Item EBELN and EBELP
    pass them and Take the EBELN and EBELP fields from it
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to get the Personal Number from Address Number

    Hi,
    I have one requirement which is as follows.
    I have one Customer. I am fetching Address Number(ADRNR) of this customer number from table KNA1.
    I want to find the Personal number linked to this Address number and Customer.
    Is there is any table or FM from where i will get the Personal number of the Customer using Customer number and Address number?
    Kindly Help

    Hi Sachin,
    Check this FM BUP_PARTNER_PERSNUMBER_GET
    " Check KNB1 and the Field name is PERNR, Most of the times this is not maintianed.
    " This refers to the Employees who are assigned as Customers
    " In XD03 go to the Company Code Data there you can find this Value
    " For more info contact your Functional Consultant
    " This is to the Best of my knowledge
    Also Check KNB1 but000 Tables
    Cheerz
    Ram

  • How to get the BP number from OBJECT ID or ID rel.Object taken from HRP1001

    Hi Gurus
    I am trying to find the BP number from the OBJECT ID or ID rel.Object which i got from the table HRP1001 in CRM  but i am not able to find the link straightaway to get that details
    Kindly help me to find out the table where i can simply put the OBJECT ID or ID rel.Object to get the BP number for ROLE EMPLOYEE
    Thanks a lot
    Regards
    Soni

    Hi Soni,
    I found this in a different thread:
    first you get the all connected partners to a position by selecting SOBID from hrp1001 (with OTYPE / OBJID of position, RELAT = 008, SCLAS = CP).
    With this SOBID go again to HRP1001 and fill the SOBID into OBJID (with OTYPE = CP, SCLAS = BP) and the SOBID of the result is the connected partner number.
    You can also use FM 'CRM_CENTRALPERSON_GET' instead of the last SELECT-Statement. Here IV_PERSON_ID = SOBID (of first select). You get the partner guid and can get data of the partner from but000.
    In this thread:
    Help needed...Infotype HRP1001--Getting details OF Position Users...
    Hope it helps.
    regards,
    Wim

  • How to get the string value from the RichSelectBooleanCheckBox component?

    I added a validator to a RichSelectBooleanCheckBox component which is binded to a String attribute of a View Object.
    I defined the mapping of boolean value to corresponding String value in the corresponding attribute binding in the page definition.
    When the validate() method of my validator was invoked, the new value passed to the validate method() was a Boolean value instead of the converted String value.
    I need to write validate() method generically so that it can handle more than one way of mapping boolean values to String values.
    How can I get the converted String value in my validator method() from the RichBooleanCheckBox component that was also passed to the validate() method as a parameter?

    use:
    int num = Integer.parseInt(s);

  • Urgent help!! how to get schedule aggrement number from in bound delivery??

    hello friends,
             I have an urgent requirement for report. in which i have to diaply schedule aggrement number , in-bound delivery number , GR number and accounting document.
    my input is inbound delivery date .
    i found inbound delivery from likp-lips with type 'el' but not able to trace the schedule line number ,gr and ir , kidnly help me
    thanks in advace
    jase

    right the query using table LIPS, EKKO, EKPO and EKBE
    If you need than only use LIKP othre wise you will get the date from LIPS
    make join from LIPS to EKKO than EKPO then EKBE
    LIPS-VGBEL field can join to PO document of EKKO

Maybe you are looking for

  • InDesign Keeps freezing when I am working on a project.

    Recently, my version of InDesign CS4 has been freezing after about 5 minutes of working with the program. I constantly have to forecfully shut down InDesign and then am constantly having to recover my documents. I have had the program for almost 2 ye

  • Connecting Sensor to Ipod touch

    I purchased a Nike+ sensor for use with my iPod touch and it worked well (although the distances it recorded was out by about 10%). One day, it stopped working (only after using it for about 2 weeks) - the iPod could't find the sensor. I tried a rang

  • How to send mail in  HTML  format using SMTP

    I want to send mail in HTML format using SMTP.Can anybody please suggest how to do it.Can anybody send me the code. Thnx.

  • My photoshop CS5 keeps getting an error message?

    When I load up my CS5 its working perfectly. However when I go pick the size of the picture I want it make it comes up but with a gray background and it freezes. Then an error message comes up saying send an error report or dont send. I am on windows

  • Create Index on a huge table

    Hi, We have a huge table and there is no index on this table, I want to create index on this table, we are working on Oracle 11g/Linux. Our business users are frequently accessing this table and select statement taking very long time. Please let me k