Passing values/results between condition type by using the formula

Hi,
I'm having one condition type (A), that is determining a result percentage based on Condition Table A. Based on the percentege determined in Condition Table A, I would like to set a custom field value in the Kondition record structure (KOMP) so that value will be considered within condition type B and accessing condition table B.
So far the only way to set values that I could find was within the Requirement formula associated with condition type B. Are there any other options? And how can I acces the percentage that Condition Type A determined? I looked into all kinds of global tables, but could not find anything.
Thanks a lot for your help!
Doreen

Shivanand,
There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
Scott

Similar Messages

  • How to pass values to XML complex type of a Webservice using PL/SQL

    HI,
    I need to call a web service from PL/SQL that has an complex type element. That complex type element has 4 child elements each of integer type.
    I want to pass values for this complex type using SOAP_API.add_parameter but I can't understand how to pass the values.
    <xsd:element name="getBestFit">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element maxOccurs="1" minOccurs="1" name="circleId" type="xsd:string"/>
                        <xsd:element maxOccurs="1" minOccurs="1" name="usage" type="Q1:UsageInfoType"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    <complexType name="UsageInfoType">
         <sequence>
              <element maxOccurs="1" minOccurs="1" name="a1" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a2" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a3" type="int"/>
              <element maxOccurs="1" minOccurs="1" name="a4" type="int"/>
         </sequence>
    </complexType>
    Please help me in getting a solution here.
    Thanks in advance.

    Have you tried doing a google search on "SOAP_API.add_parameter" to see what comes back? I see a lot of hits come back so hopefully one of those will help you. I've never used soap_api as I used utl_http to make WS calls. This required me to build the SOAP message (aka XML of a specific nature) by hand and then pass it to the WS using utl_http. How this approach is done via SOAP_API, I can't say.

  • Condition value of Tax condition type gets added to Total Value in Contract

    Hi All,
    I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan.  Consequently, the second line has null Outgoing target value.
    However, the header Total value in the Contract  gets wrongly calculated as Basic condition value of 1st line  + Condition value of tax condition type of line one due to this.   When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
    For eg.
    Normal Error free  Contract
    Total Value at Header =   700.00 EUR
                       Material          Outgoing Target val
    Item 0010    MAT1               450.00                          ( 450 + 50 (tax )  )
    Item 0020    MAT2               150.00   
    Contract with billing plan error in second line
    Total value at Header =   550.00 EUR 
                            MAterial       Outgoing target val          
    Item 0010         MAT1             450.00                    ( 450 + 50 (tax ) )
    Item 0020         MAT2              0.00         
    Any inputs would be most welcome.
    Regards,
    Venkatesh.
    Edited by: Venkatesh Gopalarathnam on Jan 24, 2012 9:48 AM

    No, i didn't.
    Actually, i enter condition type and amount in sales order manually.
    At that time my program which i modified at 'Define And Assign Pricing Procedures' in IMG should be run. 
    But the result of running is different from my purpose.
    To change Condition value of condition type in sales order, are there any solution?

  • What is the difference between Condition Type PB00 and PBXX

    Hallow all,
    Can anybody please explain, What is the Difference between Condition type PB00 and PBXX in Materials Management Pricing?
    And also please explain control or Application of both on Price determination ??
    Thanks in Advance !!!!!

    Hi,
    PB00 condition type is used for automatic pricing in PO
    PBXX condition type is used for manual pricing in PO
    In Pricing  access sequence  play a vital role . If you need pricing automatic in the PO, you have use of Access Sequences and Schema Group of Vendor.You can see the difference in both standard condition type PB00 and PBXX, where as PB00 is assigned to Access sequence(0002)but in case of PBXX no access sequense assigned.
    Regards,
    Biju K

  • Change the Condition base value in a Condition type.

    Hi Experts,
    I have a problem because I need to change the condition base value for a condition type. This condition base is calculated as a result of other condition types in the list of pricing Elements. I would need to change the base in order to solve the problem.
    Thank you and best regards.

    Hi Alberto
    if i get it correctly , this is your scenario
    condition 1--- price x
    condition 1--- price Y
    condition 1--- price z
    now you want a fourth conddition with base value total of the above 3
    if so , you maybe define all the above 3 as statistical ,
    in another row , create a total of the above 3,
    assign a sub total this ,
    create new conditon type and in its alt base value , give the formalue for the sub total
    for eg 5 for sub toal 1, 6 for sub total 2
    and then you would get the right base value
    Hope this helps
    Thanks
    Akasha

  • Function module to change the value for pricing condition type

    Hello experts,
    I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
    I used many function modules but none are working.
    Please kindly suggest a function module that will change the value for a condition type .
    I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
    Thank you.
    CLEAR PRCD_COND.
         SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
                                              KSCHL = COND_TY.
      IF SY-SUBRC = 0.
    *    MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
    *    CLEAR L_COND_CHG-KBETR.
        L_COND_CHG-STUNR = PRCD_COND-STUNR.
        L_COND_CHG-KBETR = COND_PRC.
    *    L_COND_CHG-KSCHL = COND_TY.
        INSERT L_COND_CHG INTO TABLE T_COND_CHG.
    L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
    L_ITEM_GUID = WA_ORDERADM_I-GUID.
    INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
    INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
        CALL FUNCTION 'CRM_ORDER_READ'
         EXPORTING
           IT_HEADER_GUID                    = HEAD_GUID
           IT_ITEM_GUID                      = ITEM_GUID
         IMPORTING
           ET_ORDERADM_H                     = LT_ORDERADM_H
           ET_ORDERADM_I                     = LT_ORDERADM_I
           ET_PRIDOC                         = IT_PRIDOC_RD
           ET_DOC_FLOW                       = T_DOC_FLOW
    *     CHANGING
    *       CV_LOG_HANDLE                     =
    *     EXCEPTIONS
    *       DOCUMENT_NOT_FOUND                = 1
    *       ERROR_OCCURRED                    = 2
    *       DOCUMENT_LOCKED                   = 3
    *       NO_CHANGE_AUTHORITY               = 4
    *       NO_DISPLAY_AUTHORITY              = 5
    *       NO_CHANGE_ALLOWED                 = 6
    *       OTHERS                            = 7
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
    INSERT L_PRI_COND INTO TABLE PRI_COND.
    LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
    L_PRIDOC_CHG-PRIC_COND = PRI_COND.
    L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
    L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
    INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
    ENDLOOP.
    LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
    MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
    INSERT L_HEADER INTO TABLE HEADER.
    ENDLOOP.
    LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
    MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
    INSERT L_ITEM INTO TABLE ITEM.
    ENDLOOP.
    L_FIELD-FIELDNAME = 'STUNR'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_FIELD-FIELDNAME = 'KBETR'.
    L_FIELD-CHANGEABLE = 'X'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_INPUT-FIELD_NAMES = FIELD.
    L_INPUT-REF_KIND = 'E'.
    L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
    L_INPUT-OBJECTNAME = 'PRIDOC'.
    INSERT L_INPUT INTO TABLE INPUT.
        CALL FUNCTION 'CRM_ORDER_MAINTAIN'
         EXPORTING
           IT_PRIDOC                     = PRIDOC_CHG
         IMPORTING
           ET_EXCEPTION                  = EXCEPT
         CHANGING
           CT_INPUT_FIELDS               = INPUT.
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    REFRESH EXCEPT.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        IT_OBJECTS_TO_SAVE         = HEAD_GUID
    *   IV_UPDATE_TASK_LOCAL       = FALSE
    *   IV_SAVE_FRAME_LOG          = FALSE
    *   IV_NO_BDOC_SEND            = FALSE
    *   IT_ACTIVE_SWITCH           =
    IMPORTING
       ET_SAVED_OBJECTS           = SAVED
       ET_EXCEPTION               = EXCEPT
       ET_OBJECTS_NOT_SAVED       = UNSAVED
    * CHANGING
    *   CV_LOG_HANDLE              =
    * EXCEPTIONS
    *   DOCUMENT_NOT_SAVED         = 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.
    COMMIT WORK AND WAIT.

    Hi,,
    To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
    Alternatively u can use this function module.
    CRM_STATUS_DATA_SAVE_DB
    BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
    Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type?

  • Hide values for certain condition types in Quotation Saleorder and Invoice

    Hi All,
    I have written code to hide values for certain condition types in LV69AFZZ,
    this works fine in the ITEM LEVEL.
    But for the same condition types, I could not hide the values in the HEADER LEVEL.
    Unless I hide it at header level also, this is useless.
    Please guide me how to do it.
    Thanks & Regards
    Pradeep

    Hi,
    We have been using FORM USEREXIT_FIELD_MODIFICATION of LV69AFZz for item level & FORM USEREXIT_FIELD_MODIFIC_KOPF of LV69AFZZ for hiding heade level conditions.
    I hope this helps,
    Regards
    Raju chiutale.

  • Relationship between condition type and payment term

    Hi,
    I created a purchase order (only 1 item) with with payment term "Within 14 days 2 % cash discount" So a condition type SKTO auto added for the item with discount is 2%.
    can anybody show me the relationship between payment term with the condition type and the IMG T.code to make this relationship?
    Thanks
    Long

    If you go to IMG - MM- Purchasing - conditions- Define price determination process - Define Condition types
    For SKTO the condition category is E- Cash discount
    For this condition type which is defined in the calculation procedure , the system internally derives a percentage from the terms of payment and inserts it in the condition type with the category E

  • Planned Values Tab in Condition Type

    Hi Everybody ,
    As a part of the standard Sales promotion Solution in COPA , the Planned Value tab in the Condition Type for a Sales Deal needs to be available. Tcode VB21 for a Condition type & then click the Magnifier lens...in which the planned values tab should be available. Can anyone tell me how to activate the tab. Its not available in our Dev client.
    Thanks
    Cheers
    Kartik

    Dear SAP Gurus
    My problem stated more clearly:
    The value under PBXX in PO appears during service entry.
    The value added to PBXX condition type is not appering during service entry.
    PL. help.
    Regards
    Veronica

  • No Value in VPRS Condition type

    Dear Experts
    While preparing a sales order , i am getting zero value against the cond type VPRS.It was working fine until recently this problem has started coming.In the Conditions details , it shows Incative-Inactive via formula of incorrect.
    the accounting view in the material master is also maintained.
    Your immediate comments for the same are required.

    Ensure that "Moving avarage price" or the "Standard price" is maintained in the Material master data in "Accounting 1".
    Specify the "Price control" in the MATERIAL MASTER as "V" if you want that system should take the "Moving avarage price" or specify "S" if you want that "Standard price " to be taken.
    In the Pricing procedure(V/08), Subtotal should be "B" and Requirement should be "4" for the VPRS condition type.
    Activate, the "Determine cost" check box in the Item category for Sales (VOV7).
    In the condition type VPRS, ensure that it has "Condition category" G.

  • Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Yes, you can, but the two devices can't have the same e mail address associated with both.  Each, device needs its own unique e mail ADR.  In your case, the iPod can call your iPhone if you use the phone number, but the iPhone can not call your iPod because it must use the e mail address, and if the email address is the same on both, the iPhone will think it's calling itself, so the call will not go through.

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Access to object list of type "BusinessSystem" using the InternalEOAService BusinessSystemAccessor failed

    Hi All,
    We are facing an issue in PI configuration when, we are unable to view business systems in the Integration Builder.
    ERROR : Access to object list of type "BusinessSystem" using the InternalEOAService BusinessSystemAccessor failed
    Our Landscape is as follows:
    PI : Based on NW7.4
    Connected to Central SLD on Solman 7.1
    OS : Windows 2008
    DB : MSSQL 2008
    We checked OSS note 1117249 - Incomplete Registration of PI components in SLD
    The problem seems to be with incomplete registration of PI components on the central SLD.
    In the Central SLD which we have configured, under the Process Integration tab we are unable to see entries for Integration Server, Adapter Engine, Directory, Repository and Runtime Workbench (RWB).
    Can you please help me with registering these components on the Central SLD so that these are visible during the PI configuration.
    Also, any idea if this issue is related to the different versions of PI and Central SLD system.
    Regards,
    Nilesh

    Hi Nilesh,
    Please check SAP Note 764176 - Manual correction of XI content in SLD.
    also check the below discussion
    Problem to register Intergration Server in SLD
    regards,
    Harish

  • Access to object list of type "BusinessSystem" using the InternalEOAService

    hi experts
    Try to revive this message:
    I got the exactly same error message. Here is my case:
    -created two business systems (third-party) in SLD
    -In Integration Directory, Service Without Party --> Business System --> Assign Business System, in step 2 Assign Party, leave the field blank and click Continue, the error message showed up and no business systems were found._
    and getting error message as
    ***Access to object list of type "BusinessSystem" using the InternalEOAService BusinessSystemAccessor failed_***
    XI 7.0 is installed in windows 2003 server.
    Anyone any clues?

    Hi Murali
    the user that u r using to logon to IB may not have sufficient authorization.
    pls check...
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/51104159ecef23e10000000a155106/content.htm
    or may be you can synchronize your IB with SLD then can check

Maybe you are looking for

  • S076 Table Update

    Hi, I am trying to update the sales and Operations planning table S076 in the background as a batch job. I know from an OSS note that a BDC would not work if I run the transaction MC88, in the background,  which essentially updates S076. Please provi

  • Create PDF from Crystal Reports

    Hi, We are using Crystal Reports XI with Adobe Acrobat Professional 8. When we create a pdf from crystal reports its giving crw32.exe encountered problem. Reinstall both the softwares are not useful. Adobe support professional says problem could be i

  • "CS4 has unexpectedly quit" on normal close, every time

    Every one of my CS4 apps shows the "unexpectedly quit" error when I close them down normally (i.e. Photoshop -> Quit, or command-Q). This happens with Flash, Photoshop, Illustrator, InDesign, Dreamweaver and Bridge every single time. When clicking on

  • Ejb lookups fail from threads spawned from servlet

    Hello, We have a servlet from which we are spawning a thread. In the thread we are trying to do a JNDI lookup for the database resource / EJBs. It does not work as if it is not able to find the context t do the lookup. I thought that the threads are

  • Problems converting from .ai to .eps/.pdf

    I recently designed a logo for a client that included both a gradient and transparency. I flattened the transparency, expanded the strokes and embedded the text before saving a copy of it in .eps and another in .pdf (PDF/x-1a:2003) When I opened both