How to enable ERP Billing document display in CRM

Hi Experts,
we are looking for a possability to show the ERP billing document in CRM WebUI. We can see this billing document ID in CRM WebUI in a sales order or a claim and it is possible to click on the ID of the document, but the system is not starting correctly the ITS Transaction in the ERP System... We only get a blank screen with the header informartion ERP: Billing Document..
thanks for any feedback
regards
Marc

Marc,
what version are you on (CRM and ERP)?
For issue in CRM (about PREPARE_DATA_FLOW method) you can copy this class in your own z-class make changes in prepare_data_flow method as follows and put this class in TL definition. The code is from our current CRM 7.0 system from standard class
METHOD if_crm_ic_action_handler~prepare_data_flow.
DATA: __gdc    TYPE REF TO if_crm_ui_data_context,
       __source TYPE        string,
       __line   TYPE        string,
       __path   TYPE        crmt_ic_ac_identify_path.
__gdc ?=
cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
********** Begin of parameter declaration ***********
DATA icwcprocessedobject TYPE ty_icwcprocessedobject .
DATA icwebclientborkeyparameter TYPE ty_icwebclientborkeyparameter .
CONCATENATE
'OBJKEY'
INTO __source.
CALL METHOD cl_crm_ui_ltx_cuco_access_srv=>get_instance
   EXPORTING
     iv_controller = gv_view_controller
   RECEIVING
     rv_result     = gv_ltx_cuco.
gv_selected_entity ?= gv_ltx_cuco->get_selected_clipboard_entry( ).
IF gv_selected_entity IS BOUND.
   TRY.
       __path = __source.
       CALL METHOD
         cl_crm_ic_activity_clipboard=>get_property_as_value
         EXPORTING
           iv_xpath  = __path
           iv_entity = gv_selected_entity
         IMPORTING
           ev_result = icwebclientborkeyparameter.
     CATCH cx_crm_bdc_no_data cx_crm_bdc_xpath_error cx_root.
       CLEAR icwebclientborkeyparameter .
   ENDTRY.
ENDIF.
icwebclientborkeyparameter = cl_crm_ic_aic_util=>add_leading_0( icwebclientborkeyparameter ).
me->set_container_object(
   iv_name        = '<*MAINOBJ*>'
   iv_object_key  = icwebclientborkeyparameter
   iv_object_type = gv_bortype ).
* Data flow is complete - set to false if data is missing
gv_data_flow_complete = abap_true.
ENDMETHOD.
About ERP side. Even on our 46C system VBRK object can receive a billing document number. Not from a parameter of the method DISPLAY, but If you run into a programm for display method you can see that FM BAPI_BILLINGDOC_DISPLAY starts with BILLINGDOCUMENT = OBJECT-KEY-BILLINGDOCUMENT.
You can check this by pressing Test button in swo1 and then press Instance button and give system a billing document number. After that execute DISPLAY method.

Similar Messages

  • How to repeat output billing documents

    Hi Guru;
    How to repeat output billing documents ; because after VF04 maintain billing due list,
    all intercompany billing doucments can not be printed throught our local printer. We are using Biling type as intercompany billing and output as print.
    Regards,
    Raj

    Hi Raj,
    Please use T-Code VF31,output from Billing
    under Message Data select the output type that you need,  enter the  transmission medium as print  and select processing mode as Repeat processing.
    And in   billing data mention the correct billing document for which you want repeat output.
    Hope Above will resolve your problem for Repeat output for Billing Documents.
    Regards,
    Sandeep

  • How to Restrict save billing document if sale rate is zero

    Dear Expert,
    Please tell me how to restrict save billing document if sale rate is zero.
    Regards
    BK GAIKWAD

    Sir,
    Many times in sales order old price has been available, (which is closed through VK12) when we have update the pricing in billing document it has been removed but billing document has been saved, we have restrict it. Please help
    Regards
    BK GAIKWAD

  • How to Create a Billing Document For SalesOrder

    Hi Guys,
    Any one please Explain me how to create a Billing Document for salesOrder. give me step by step procedure so i can easily understand the terms.Thanks in advance.
    Thanks
    Kiran.B

    Hi Kiran,
    Normally a billing doc is created after a sales order-->delivery.
    U can create a sales order w.r.t a Contract or another sales order.
    In your case, its possible only for sales Returns.
    pass billing doc number to ORDER_HEADER_IN-REF_DOC in BAPI_SALESORDER_CREATEFROMDAT2.
    Reward points if helpful
    Regards,
    Hemant

  • How to block creating Billing document if no accounting doc generated

    Hi,
    In Brazil, after create Billing Document a new document called Nota Fiscal is also created.
    But I can't allow creating Billing Document and Nota Fiscal if i have a problem during the releasing process of the Accounting Document.
    How Could I to do for block the creation of those documents if i had a problem in releasing the accounting document ?
    Best Regards.
    Kleyson Rios.

    HI,
    with out creating a billing document we can not expect accounting document details.
    once u create a billing document then we come to know whether accounting doc is created or not. if not created then we hav top analyze why it is not created.
    do one thing u have to check all configuration settings before creating a billing document.
    Srini

  • How to block a Billing Document Type?

    Hi forum
    I need to block the billing document type FV-Invoice Contract.
    Is there some configuration to do that?  I found VOFA where you can change billings documents, but I cant find how to block it.
    Thanks for your support.

    If I am correct, go to IMG Sales and Distribution --> Billing --> Billing document --> Define Blocking reasons --> Aassign blocking reasons to billing types.
    Right now I dont have access to SAP and hence not sure on the path.
    thanks
    G. Lakshmipathi

  • Assignment in Billing document displays different value than sort key

    Hello,
    The billing document is generated from VBRK where no manual intervention is possible. The accounting document which gets generated is directly posted in system.
    Sort key is used to fill up the assignment field at line item level. In case we have a sort key defined at the GL account at company code level & also at Customer account at company code level system will give priority to the customer sort key.
    In our case we have 2 customers where the settings are identical at both GL account & customer master at company code level.
    The sort key has been defined as posting date at GL account level & Document number + fiscal year at customer level.
    Hence system always updates assignment field with Document number, fiscal year.
    However in a peculiar case when we have generated the billing document in 1 case the assignment field has been correctly populated whereas in the other a WBS element has appeared.
    Could you explain from how & where this WBS element has appeared when other billing documents for the same customer are having the assignment field being populated correctly.
    Thanks & Regards
    Shreenath

    In addition to Ajay's suggestion,  please note three exchange rates you can find in billing document.  They are
    VBRP-KURSK = Document currency for Price determination which depends on the setting of TVCPFLP-PFKUR in copy control
    VBRK-KURRF = Document currency for FI postings. If you input manually in sale order field VBKD-KURRF, it is copied to above table / field.  Otherwise, this will be determined during invoice generation.  For more details see Note 36070 - Fixed foreign currency rate for Accounting document
    KOMV-KKURS = this is for local currency at Price condition level which will be determined based on pricing date.
    G. Lakshmipathi

  • How to Copy from Billing document F2 to Credit or Debit memo?

    Hello,
    I know the Menu path for copy control of billing document to billing document which  is as follows
    SPROIMG-Sales and Distribution-BillingBilling Documents-Maintain Copy Control of Billing document--Copy COntrol: Billing Document to Billing Document where I give the Source and the target.
    Now I have a scenarion where F2 invoice has ForTrade/Customs information in the Header of F2 invoice which can be viewd through VF03->Header->ForTrade/Customs tab.
    Now that inforamtion has to be transferred to CR/DR which is now not being copied although I have set the copy controls between the billing document.
    So, can anyone help me by providing the information for the following questions?
    1.How will I acheive the copy of Foreign trade to CR/DR from F2?
    2. When I copy from F2 to CR/DR, which all information from F2 will be copied to CR/DR?
    Thanks for the help.
    Anupama Rao

    Anupama,
    The foreign trade data is copied from delivery to billing and any order doesn't contains the foreign trade data and when you create a credit memo request CR by copying F2 invoice the foreign trade data is not copied to CR and when you create a G2 invoice from CR the foreign trade data is not copied because it doesn't exists
    the optimal solution for this is to keep the incompletion for foreign trade in the G2 and L2 inovices
    Regards,
    Santosh

  • How to change  posted billing document

    Hello every body,
    I want to know how can we modify sales office field on  posted billing document.
    We want to change in mass two years of document. ( We are running on Ecc6.0)
    Regards,
    Mercedes.

    As suggested, you CAN  - technically - have a program directly update the table. However, there are two potential problems with this.:
    1. If you have application issues with this - or subsequent problems with the invoice data, SAP will not support you.
    2. A direct update will not cause statistical data (i.e. SIS structures such as S001, S004 or a custom structure) to be updated.

  • How to get vbrk_vbeln (Billing Document) from VF02 to userexit RV61AFZB

    I am using USEREXIT_PRINT_HEAD to check if a document has been cancel or not.
    But I need to get the Billing Document from transaction VF02 to the userexit.
    How can I get the Billing Document?
    I have tried to use screen field vbrk-vbeln, but it give me Field 'VBRK-VBELN' is unknown.
    Please advice, help needed urgrently. Thanks

    Rupali,
    In USEREXIT_PRINT_HEAD, i'm using both fksto and vbeln from vbrk.
    So I need to get these data inorder to execute my code.
    Below is my code:
    IF fksto EQ 'X'.
            MESSAGE e901(V1) WITH vbeln.
    ENDIF.

  • How to get intercompany billing document number

    Hi,
    I have PO number , Delivery number  for a given shipping plant and receiving plant.I want to get the intercompany billing document number.Is there any method to fetch.Can anyone suggest me how to proceed with this.Intercompany billing document number can be obtained from VBRK-vbeln for type that is VBRK-fkart = iv .But how to relate PO number and delivery number with this.
    Regards,
    Sowmya.

    Hi Friend,
    Yes you can check though billing type IV.
    Gereally in inter company billing, we generally create a customer in the receiving company. Try to know the name of the customer (generally it is one and fixed) from functional consultant, and pass to bill to party, it will help to reduce lot data.
    I thnik delivery has been created through refrence of PO.
    You can get PO and delivery number if it is stored in the text of Billing doc.
    Consult with functional guys and tell them to store these numbers.
    Regards
    Krishnendu Laha

  • How to create the billing document without reference

    Hi,
    I want to create a billing document in R3 without any reference with sales order or delivery.
    Aare there any FM or procedure to achieve this.
    If you cna send me the sample code it will be really helpful.
    Regards,
    sasi

    Hi,
    Iam trying to use the FM BAPI_BILLINGDOC_CREATEMULTIPLE
    But iam unable to create through this.
    If you have any sample code on this.It will be really helpful.
    My scenario is,
    I have an existing floe of data
    ie salesorder--delivery-billign document.
    But my requirement is to create two billing documents point to two different sales areas.
    Sincle we already created the billing document it will not allow to create one more billing document.
    Thats why iam lanning to create the billign document wihtout any reference.
    Please help me.
    Regards,
    sasi

  • How can we restrict billing document cancellation via VF02?

    Hi,
    We need to restrict the billing document cancellation via VF02. We want to do the cancellation only via VF11.
    Any suggestions?
    Regards,
    Student

    Hi,
    Don,t allow the user to T.code VF11,control this through user authorization, he is able to do any changes in VF02 and if he tries to do cancel the document it will comes to T.code VF11 so there he is not authorized to do cancel.
    check and revert
    Regards
    Ram

  • How to sum up billing documents and provide scale based discounts

    Dear Gurus,
    Here is the client's requirement:
    Actually the client requires that after two weeks some of the customers are given discount based on the total quantity or value been sale.
    Invoice list seems a great option but issue is that its sums up the factor discount from all the billing documents.Although,the client requires that after the toal quntity or value been taken from the billing docuements a scale is applied at the level of invoice list.For example
    billing 1  value 10,000 discount 3 %   = 300
    billing  2 value  1,000  discount 3%    =30
    system response:
    invoice list  value 1100 discount =330
    client requirement
    invoice list value 1100
    scale  :  if value <= 500  discount 3%
                 if value >500 && value<2000  discount 4%
    required value : invoice value 1100 discount 400
    Kindly help , if there some better option availble in invoice lists or any other solution you may come up or suggest.
    Regards,
    Sam Ahmed

    Hello,
    you can create a discount condition type and add access sequence to it. If your client does not have access sequence as per your requirement create one with copying a standard access sequence for discounts.
    you can create a separate table to fulfill changes so that access could be made.
    regards,
    amol marathe

  • How do I split billing document?

    Hi,
    I have a customer who only accept a certain lines per billing document. However, they want to place a sales order, regardless of its limitation in billing document.
    For example, in sales order, there should be no limit of ltem lines (i.e. 20 lines). Yet, the billing document only accept 6 lines per billing document. In this case, 4 billing documents need to be created from 1 sales order.
    Any help or suggestions are apprciated!

    Hi Takako,
    Let me recap your scenario and then i will provide the solution.
    You want to split the billing document for a particular customer only with the restriction on the no. of lines.
    Solution
    Go to the customer master and choose 1 field which can be used enter the maximum no. of lines which a billing document can have for this customer. Whether the field has to appear in Sales Area Data or General Data will depend upon whether you want all the invoices for that customer to split on the special logic or you want only the invoices related to a specific Sales Area to split on this special logic. If the field is not availble then kindly create a new field and attach that to the Customer Master.  The new field can be created in the Additional Data Tab of the customer master.
    If you split the invoices for a Delivery relevant Sales cycle it is a possibility that you will end up having 1 delivery and multiple invoice and you might stuck up into the problem of Net Weights & Gross Weights & HU splitting in the logistics process.... Therefore, it makes more sense to split the delivery also on that special logic.  You can check this requirement with respect to your SAP instance and let me know if you need this splitting also.  Currently i am only explaining the requirement of splitting the invoices only.
    In a delivery related Sales Cycle, Billing Picks the Qty & Lines delivered details from Delivery Document & Pricing details from the Sales Order Document (except for shipping services related prices). Therefore the split for invoices has to be placed in the Delivery to Billing Copy Control.  Pick up the routine you are using between Delivery to Billing and make necessary modifications in the ZUKRI field.  ZUKRI field is a 25 character unique field which is responsible for additional  splits.  You can take a look at the ABAP code in the SAP Note No. 192558 which is specific to china for Splitting the invoices for a maximum value and max no. of line items per Sales Org. In your case it is not sales org based but customer based so you need to make necessary modifications in the code to bring in split data from Customer master instead of sales org.  This will provide you an idea about the split in your case.
    I hope details provide by me helps for your case.
    Thanks
    Kapil Sharma

Maybe you are looking for

  • Difference b/w ok_code and sy-ucomm in module pool ?

    hai abap gurus, ok_code and sy-ucomm store the function code of the element.. then y do v use ok-code in the program. y dont v use sy-ucomm... pls clear my doubt...

  • ADF Faces w/ADF BC: Bug(?) w/null values in drop down list in find mode

    Using JDev 10.1.3.0.4. I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria. One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Edi

  • How do I cancel a download that won't load

    I tried downloading a movie from iTunes. It lost connection and stopped downloading and now none of my apps will update. It just says waiting. How do I cancel the movie that started loading?  I only see the pause and resume buttons on the iTunes down

  • Problem in Vc theme editing

    Hi,            I have a problem in changing vc theme.By using portal theme editor i have changed the theme in FlexRuntimecontrols but its not reflecting in VC.            Currently i am working in VC 7.0  sp13        Regards   Bala

  • How to startup from CD, if CD not in drive?

    i bought a brand new Mac Pro, and i have not turned it on yet. on my first power-up of this machine, i want to startup from my system CD (instead of the internal system drive it shipped with) how do i do this, since the CD is not IN the machine at pr