Transaction BP start in sales area - status view screen

I'm calling from outside of R/3 (from CRM).
I want to start online transaction BP started, but I want to start up in the sales area, and the screen status. This is crucial because it is must be done several times by the users.
I have tried to see examples in the code how memory with structure BUS_NAVIGATION is filled. But it does not work.
Any suggestions?
BR
Bent Holm Nielsen
[email protected]
FUNCTION ZE_SD_CIC_CALL_TRANS_BP.
*"*"Local interface:
*"  IMPORTING
*"     VALUE(TCODE) TYPE  TCODE
*"     VALUE(KUNNR) TYPE  KUNNR OPTIONAL
  DATA lv_key(34) TYPE c.
  DATA ls_indx    TYPE indx.
  constants: gc_shared_buffer_id type INDX-SRTFD value
            'BUPA_NAVIGATION_REQ'.
  data: ev_instance type ref to CL_BUPA_NAVIGATION_REQUEST.
  data GS_NAVIGATION type BUS_NAVIGATION .
  data GS_NAVIGATIONX type BUS_NAVIGATIONX .
  data GV_TITLE type BUS_SCREEN-TITLE .
  if tcode eq 'BP' and not kunnr is initial.
    SELECT single PARTNER_GUID into gs_navigation-PARTNER_GUID
           FROM  BUT000
           WHERE  PARTNER       = kunnr.
    if sy-subrc gt 0.
      exit.
    endif.
    data: lt_role type BU_role_t,
          ls_role type BU_RLTYP,
          lin type i.
    refresh lt_role.
    SELECT RLTYP appending table lt_role
           FROM  BUT100
           WHERE  PARTNER  = kunnr.
    describe table lt_role lines lin.
    if lin le '1'.
      read table lt_role into ls_role index 1.
      if sy-subrc eq 0.
        gs_navigation-BUPA-PARTNER_ROLE = ls_role.
      else.
        exit.    "The function module
      endif.
    else.
      read table lt_role into ls_role
                 with key 'ZCRM01'.  "sold-to
      if sy-subrc eq 0.
        gs_navigation-BUPA-PARTNER_ROLE = ls_role.
      else.
        read table lt_role into ls_role index 1.
        if sy-subrc eq 0.
          gs_navigation-BUPA-PARTNER_ROLE = ls_role.
        else.
          exit.    "The function module
        endif.
      endif.
    endif.
* Start Export data to the ABAP memory
    gs_navigation-bupa-activity       = '02'.
    gs_navigation-bupa-sub_header_id  = 'LOCU90'. "Status screen at bp
    gs_navigation-bupa-sub_header_tab = 'LOCU90'. "Status screen at bp
*Break sapbhn.
*data: lt_fields type table of BUS0FLDVAL,
*      ls_fields type BUS0FLDVAL.
*    ls_fields-TBFLD = 'RF02D-VKORG'.
*    ls_fields-FLDVL = 'S001'.
*    insert ls_fields into table lt_fields.
*    gs_navigation-bupa-FIELD_VALUES[] = lt_fields[].
    CONCATENATE gc_shared_buffer_id sy-uname INTO lv_key.
    gs_navigationx-partner_guid      = 'X'. "Guid
    gs_navigationx-bupa-partner_role = 'X'. "Role
    gs_navigationx-bupa-activity     = 'X'. "Change mode
    EXPORT gs_navigation  FROM gs_navigation
           gs_navigationx FROM gs_navigationx
           gv_title       FROM gv_title
           TO DATABASE indx(bp) FROM ls_indx ID lv_key.
* End  Export data to the ABAP memory
    call transaction 'BP'.
  endif.

Hi,
have you found any solution?
Please, if you have, send me an email to [email protected]
I would appreciate so much your explanations.
Best Regards,
Rosa

Similar Messages

  • Sales area data view is not visible

    Hi All,
    the salea area data view  is not visible for  all BP roles in BP master data
    please help me how can i need to put in a visible

    hi
    sales area data tab is not visible for each and every BP role,
    it is visible for sold to party,ship to party roles,
    there is aview associated with this role that is CRM 000
    if you want to have sales area data tab visible in the role like BP general you have to assign this view to your role
    but i should make you one thing very clear that sales area data tab is meant for the customer who has purchased the order and final order has been given and within this tab you have each and every info regarding the sales office,sales group etc that where the order is to be delieverd or purchased from,
    once a final order is given it can be sold to party role,ship to party role or bill payable role ,u urself tell in the role of customer how can u see the sales info if the customer hasnt purchased the order ,
    likewise the consumer role also has sales data info so sales area data tab is visible in this role too
    hope it clears all your doubt,
    in case of any doubt do revert back
    best regards
    ashish

  • Incompeltion log for sales order over view screen

    dear all,
    i have a problem in incompletion log ,  my requirement is  i need the incompletion log to be trigered  in the sales order over view screen  .
    The senario is :
    There is a excel sheet maintained in the    sale order over view screen - extras tab - Documents - there excell sheet will be maintained  and   from that the item will be selected .  
    is there any way to inclued this   field and table  in the log of in completion terms  in incompletion procedure .  or is there any
    user exist to be involved  for this 
    kindly guide me how to  go about it  so that the error or warning msg   is triggered when this  incompletion is checked
    regards
    kumi

    Hi Kumi,
    Do you mean you want to check whether DRAW-DOKNR  or DRAD-DOKNR is filled with value?
    If yes, I don't think standard incompletion log could fulfill your requirement since only check for VBAK, VBKD, VBAP and VBEP could be defined.
    I also checked Userexit_save_prepare (MV45AFZZ). Table DRAW is not available. DRAD is empty.
    Sorry but I could not provide more positive answer.
    Best regards,
    Smile
    Edited by: Smile Zhang on May 25, 2010 3:39 PM

  • Sales area on selection screen

    Hi friends,
    i have a requirement,
    on my selection screen i need a field called sales area which is a combination of
    sales organization,
    distribution channel,
    division
    how can i get all the 3 in one single field called sales area on my selection screen.
    Regards
    priyanka

    Hi Priyanka,
    In SAP ABAP if you wish to concatenate 2 or 3 strings together then you can use the following function module.
    STRING_CONCATENATE_3
    The above mentioned function module excepts 3 strings and concatenates them into 1. Please see the example given below.
    REPORT ZEX_STRINGCON .
    parameters: p_str1(100),
                          p_str2(100),
                          p_str3(100).
    Data:       d_str(500).
    CALL FUNCTION 'STRING_CONCATENATE_3'
      EXPORTING
        STRING1         = p_str1
        STRING2         = p_str2
        STRING3         = p_str3
    IMPORTING
       STRING           = d_str
    EXCEPTIONS
       TOO_SMALL       = 1
       OTHERS          = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Write: d_str.
    If the input is as follows.
    p_str1 = 'This'
    p_str2 = 'Is'
    p_str3 = 'ABAP'
    The output would be as follows.
    String Concatenate     
    THISISABAP          
    Hope it helps you
    Regrds
    Mansi

  • Possibility of addition creation time in the sales order over view screen

    Hi,
    Is there a possibility of adding the creation time in the sales order overview screen in VA01/2/3.
    thank you

    hi,
    this is to inform you that,
    contact your ABAPER for this is to find out if there any possibility making time field mandatory if it is there in Standard SAP. there in VBAK table i am able to see VBAK - ERZET
    or
    if it is not available then you need to go for field exit.
    hope this helps.
    balajia
    Edited by: balaji timmampalli achari on Nov 30, 2010 6:11 AM

  • Mass extension of material master to differnt sales area

    Hi,
    How can we extend material master to different sales area enmasse.?
    Regards
    Kantha

    A material master is not just linked to a sales area.
    you have to create sales views per sales org and distribution channel.
    there are many fields in there that need to be maintained, SAP stores this info in table KNVV
    if all data in the new sales area is equal to an existing sales area, then you can easily extend using MM17, if not, then you have to use LSMW.
    MMSC_MASS is for storage location extension, this is certainly not a transaction to create sales area data views.

  • Extension of customers to sales areas

    Dear friends,
    I have around 5000 customers created in one sales area.Now I have to extend all these customers to another two sales areas.In VD01 manually I can do it.How can I do automatically  extension for all customers?Already customers are uploaded in production server  with first sales area.Now I have to extend all customers for remaining two sales areas in production server.can someone kindly guide me how to do it?
    regards,
    seetaram

    Hello. Probably the easiest way of doing it is via transaction XD99 (Mass Maintenance: Customers). you may want to do it on MASS transaction, object type KNA1.
    There you are able to change and/or create customer general data, company code data and sales area data.
    You must select all related tables in order to extend sales area data views (KNVV, KNVP, KNVI).
    Check field 'do not change existing data' on tab 'Data records to be changed'.
    On tab 'Data records to be created' you can:
    Create new records for an object
    Create new records as a copy of an existing record, thus copying existing values
    A record is technically a table entry and normally corresponds to an organizational level such as the plant data record.
    Procedure
    Enter the selection criteria for creating the new records.
    Example 1
    You want to create Spanish descriptions for all materials beginning with the letter M (assuming the Spanish descriptions do not already exist). As your selection criteria, you enter M* for the material number, and ES as the language.
    Example 2
    For the material M-1, you want to create descriptions in all languages defined in the system. As your selection criteria, you enter M-1 as the material number, and * for the language.
    Enter the parameters for determining the reference record.
    The individual key fields of the reference record are determined as follows:
    If you specify a value for a reference parameter, the value you specify becomes the value for the corresponding key field in the reference record.
    If you leave one or more of the reference parameters blank, the value you specified for the corresponding parameter for the new record becomes the value for the corresponding key field in the reference record.
    If you do not specify any reference parameters, the reference record is identical to the new record. This is equivalent to working without a reference.
    Example 3
    You have carried out the steps as described in Example 1. The records created include, for example, M-1, M-2, and M-3, each with the language ES. You now have the following options:
    As the reference value for the language, you enter EN for English, but leave the material number blank. As a result, the reference records are M-1, M-2, and M-3, each with the language EN.
    As the reference value for the material number, you enter M-1, but leave the language blank. As a result, the reference records are M-1, M-1, and M-1, each with the language ES (Spanish).
    As the reference values for the material number and language, you enter M-1 and EN (English) respectively. As a result, the reference record is now always M-1 with the language EN (English).
    I hope it helps.
    Best regards,
    Jason Melo

  • Sales area error

    Dear All,
    I'm getting error while creating the customer master vide xd01 , All ncessary setting done in SPRO (creation of sales area, assignment of sales office to sales area, defined common divisions & Distribution channels) but in xd01 transaction error is coming "Sales area 1001 10 11 is not defined for customers". I have checked in TVTA table where only 3 fields are updated i.e. sales org, dis. channel & division other fields are blank. Plz guide me what other things are missing.
    regards,
    sps.

    Hi,
    Check in T-code VOR1---Define Common Distribution Channel
                                VOR2----Define Common Division
    Also Check
    OVAO---Combine Sales Organizatio
    OVAM--Combine Distribution Channel
    OVAN---Combine Division
    Check with this tcodes .whether Common Distribution has done with ur requirement.
    Regards,
    Seegal

  • Table to retrieve sales orders per sales area and BP name

    hi,
    I am looking for tables or reports where I can retrieve business transactions base on per sales area and / or BP's ex. name of the BP's.
    the crmd_order_index contains BP number but it contains both header and items of the orders, is it possible to find the total amount of header grouped by BP in SAP Query ?
    Thank you.
    Benj.
    Moderated: Please use the search before posting.
    Message was edited by: Andrei Vishnevsky

    Hi Jerome,
    I think you can use the table CRMD_ORDER_INDEX. Just that records that have same header and item guid are related to header and the ones that have different item guid and header guid are related to item.
    Or am I missing something?
    Regards,
    Niraj

  • CRM 3.0 BP Maintenance - Sales Area Data

    Hi Gurus
    In CRM 3.0 for Transaction BP
    In the Sales Area Data is a Tab for Partner Functions.
    In which table is this Partner Function data stored please. Please do not provide a Structure name as I am not technical
    Many Thanks
    Panduranga

    Hi Panduranga, how are you?
    The information contained there is in table CRMM_BUT_FRG0081.
    Kind regards,
    Garcia

  • Sales area tab in BP transaction

    Hi All,
    We have CRM 5.0 Standalone CRM system.
    While creating Business partner in Tcode BP for Sold to party role, we do not see SALES AREA DATA button – Please let us know the suitable screen settings required to get this button.
    Thanks & Regards,
    Rucha Atre

    Hi,
    Check the transaction bus_hdrid. The entry for CRM001 should be there.If not enter the following:
    CRM001     Sales Area Data     CRM: Sales Area Data     CRM1     CRM001
    Also, go to the transaction busd and for your bp view ( CRM001)
    assign the above subheader.
    Thanks and warm regards,
    Smita.

  • Add new tab under 'Sales Area view/Data' of Customer Master TransactionXD01

    Hi,
    I want to add a new tab under 'Sales Area view/Data' of Customer Master Transaction XD01.
    Is there any screen exit for XD01/XD02/XD03?
    Or will I have to go and change SAP screens?
    Thanks in advance.
    Srinivas P
    9663397476

    Hi,
    I want to add a new tab under 'Sales Area view/Data' of Customer Master Transaction XD01.
    Is there any screen exit for XD01/XD02/XD03?
    Or will I have to go and change SAP screens?
    Thanks in advance.
    Srinivas P
    9663397476

  • Can i view & analysis the customer report asper the sales area wise how?

    can i view & analysis the customer report asper the sales area wise how?

    Hi,
    If you are talking about FBL3N or any other FI customer subledger report, then Yes and No.  If you have customers extended to multiple sales area, then no, if there is a one to one relationship with the sales area then yes.
    Cheers.

  • Sales Area assignment to Transaction Type.

    Dear all,
    We are using SAP CRM 5.0and am in the process of rolling out CRM Sales to a new Company of us.
    I have defined the Organization Management in C21 System and completed the Assignment of Sales Area to the Transaction Types in Development landscape.
    Now i need to move the settings to QA landscape.
    As the assignment of Sales area is a transportable object, i transported the same to QA landscape but the organization number ranges which has been created in QA landscape are different,
    how do you I bring same Organization Number to QA landscape from Development as it is not a transportable object?
    It is the only way to Change the system settings in SCC4 and change the settings manually.
    Kindly give me your inputs how to go ahead.
    Satish

    Hi,
       Check if the following thread helps.
    [Transport Org Structure;
    [Transport of Organization Structure;
    [Transport Org Structure;
    Regards,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on May 11, 2010 3:38 PM

  • Display sales area data in view mode?

    Hello,
    we use CRM 7.0 with the WebUI. In Account view we have the assignment block of sales area data. but in this assignment block we only have the possibility to open the sales area data in Edit mode.
    Is there a way to open the sales area data in view mode and if how does it work?

    Hi Fabian,
    If you see this block as delivered by SAP, its in display mode with possibility of edit( button to edit ). If you want to take out this button/disable this button then you will have to redefine GET_OCA_T_TABLE from IMPL class of respective view ( BPSALES/CorpAccountSalesAreasOV) also you will have to remove buttons for adding new entry by redefining DO_PREPARE_OUTPUT.
    Regards,
    BJ

Maybe you are looking for