Multiple records in 1 access sequence

Hi,
Is it possible to have the system find multiple condition records in the same access sequence step?  For example, I have defined table 602 and added it in an access sequence.  I create 2 condition records with unique keys.  I want both to appear as output records in the billing document. 
Table 602
Condition type |  Billing Type | ZZPartner | Partner | Partner number | Medium
ZD00               |   F2            |  ZJ           |  ZJ       |  1000111          | 2 (fax)
ZD00               |   F2            |  ZK          |  ZK       | 1000777          | 5 (email)
I want both of these condition records to appear in the billing output.  The way I have it configured now, only 1 record is determined.  The bold fields are the keys.
Thanks in advance.
Maggie

Hi Maggie,
As per system Understanding it searches for condition records by Access sequence,where in table has assigned.
If you maitain two records for two types of scenario System stops at one record as record has been found and will not go and search further.
So with your settings system should change as medium also KEYFIELD.
Then system Differentiates 2 records and as per records the data will be determined.
CHANGE TABLE 602 WITH MEDIUM ALSO AS KEY FIELD.
Regards,
Reddyy

Similar Messages

  • Help required with Access Sequence for output of Delivery

    Hi
    I have created new conditon table for shipping point and storage location
    Created new access sequence , with this new condition table as the 1st sequence - the others being Sales org/ Customer and then Shipping point.
    Applied this Access sequence to Output type
    I created condition record against 1st access sequence, Shipping point and storage location
    Yet when I created Stock Transport Order and subsequent delivery for this STO.
    The first access sequence against Shipping point and Storage location was not found
    The fields used against shipping point and storage location in my access sequence are as follows:-
    VSTEL     KOMKBV2    VSTEL
    LGORT    KOMPBV2    LGORT
    I also tried with a condition for shipping point and material , but this was not found either
    Any ideas ?
    Please advise
    Many thanks
    Tony

    HI
    checked the config and the delivery type is assigned to output determination procedure for shipping output.
    we have two outputs for deliveries, one for delivery schedule note and the other for despatch note, once PGI has been done.
    Delivery schedule note is first in the determination procedure so delivery type NL replenishment delivery is assigned to the first output in this procedure
    is something amiss here ??
    Thanks
    Tony

  • Access Sequence - Exclusive

    Hello Guys,
    I have got a question, this might sound a little easy for sap Gurus.
    The exclusive indicator prevents the system from reading the
    condition records ,if it found value for existing condition
    table.It is a control for the system to access condition
    record from the database.
    EX--:If you assign an exclusive indicator option for a
    condition table in access sequence ,and if the system finds
    condition records for condition table in access sequence
    ,then system does not go to the next condition table .
    My question is what if we do not check the exclusive, how does it behave??
    Will it search all the conditions records and after search which one will it consider??
    Many Thanks in advance
    Abhi

    Hi Abhi,
    referring to your question
    -My question is what if we do not check the exclusive, how does it behave??
    In this case system will populate all the condition records int he access sequence but will activate only one them with a green signal and others will have yellow signals.
    I do not have SAP access right now but it is sure that either system will  activate the first one or the last condition  record.
    It is a SAP standard functionality that only one basic price can be there in a line item,so for this reason other will be deactivated(yellow signal).
    Hope it clears
    Mohit Singh

  • Can one Condition type can have multiple access sequence?

    hi,
    Can one Condition type can have multiple access sequence?

    Hello,
    You can have one access sequence for condition type, but an access sequence can have more than one accesses.
    Prase

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • Service Tax Condition record - Table-3 and access sequence MWST

    Dear All,
    For maintaining the service tax conditon record , it is required to have the condition record to maintain under Tax classification table, which is available in access sequence MWST or we can add this condition table( table no :3) in any other access sequence and that access sequence needs to be assigned in Service tax condition type i.e JSRT, becasue system will check the rates from the table A003 while doing the service tax transfer from intermediate account to service tax account in report RFUMSV50.
    But the issue in there is NO validity period defined in the condition table : 3 , which signifies that we can not maintain the service tax condition record along with the validity period.
    Is there any way , we can add validity period field in Tax classification table.
    and how can we see the maintainace of Taxes table , is there any T.code avaiable for the same, as I could't find the same.\
    Please suggest.
    Thanks & Regards
    Nitin

    Hi Nitin,
    SD can give validity period for a tax code either for an individual customer or for all the customers through their pricing conditions.
    Aravind

  • Partner Determination Via Multiple Access Sequences

    COM_PARTNER_BADI.
    In a certain item level partner determination procedure for partner function ZPF, we use an access sequence of 1000. 
    As expected, we copy partners from the preceding document to our item.  That is what we want.
    We also want to invoke a COM_PARTNER_BADI Call to supplement the with additional partners.
    I defined a two step access sequence. 
    10     10     COM_PARTNER_A      Preceding Document
    20     20     COM_PARTNER_X      Badi 1
    The BADI works but seems to wipe out the preceding document results.
    Is there a way configure to get both the preceding document results and the new information.
    ( it would seem silly to make the badi determine the preceeding results as well)
    In reality , there is only one preceding ZPF partner and one new ZPF partner, but we have the pdp set to allow 150 ).
    Thanks.... ...Mike

    Hi Sunil,
    Thanks for your reply.I want to determine the service team automatically in the ibase based on the ibase postal  code. I used the access seq 10000304 which uses the postal code to determine the service partner. but the determination is not triggered automatically in the ibase
    Any hint will be of great help.
    Ambarish

  • PLSQL web service returning multiple records

    Hello,
    I am trying to create a web service using oracle 11g which should be able to return multiple records.
    Based on hints and code samples found on the internet here is my code :
    CREATE OR REPLACE TYPE test_rec is OBJECT (
        s_nume_adre                    NUMBER ,
        c_eta_civi                     VARCHAR2(4 BYTE),
        l_nom1_comp                    VARCHAR2(40 BYTE),
        l_nom2_comp                    VARCHAR2(40 BYTE),
        l_nom3_comp                    VARCHAR2(40 BYTE),
        l_pren_comp                    VARCHAR2(30 BYTE),
        d_date_nais                    DATE);
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec;
    CREATE OR REPLACE PACKAGE test_pkg AS
      function get_rows(snume_adre in number) return test_array;
    END;
    CREATE OR REPLACE PACKAGE BODY test_pkg AS
      function get_rows(snume_adre in number) return test_array is
        v_rtn   test_array := test_array(null);
        v_first boolean := true;
        cursor c_get_rows(snume_adre in number) is
          SELECT a.s_nume_adre,
                 nvl(a.c_eta_civi, '') c_eta_civi,
                 nvl(a.l_nom1_comp, '') l_nom1_comp,
                 nvl(a.l_nom2_comp, '') l_nom2_comp,
                 nvl(a.l_nom3_comp, '') l_nom3_comp,
                 nvl(a.l_pren_comp, '') l_pren_comp,
                 nvl(a.d_date_nais, to_date('01.01.1900', 'dd.mm.yyyy')) d_date_nais
        FROM bro.z45 a
      where a.s_nume_adre = snume_adre or snume_adre is null;
      begin
        for rec in c_get_rows(snume_adre) loop
          if v_first then
            v_first := false;
          else
            v_rtn.extend;
          end if;
        v_rtn(v_rtn.last) := test_rec(rec.s_nume_adre, rec.c_eta_civi, rec.l_nom1_comp, rec.l_nom2_comp,
                                    rec.l_nom3_comp, rec.l_pren_comp, rec.d_date_nais);
        end loop;  
        return v_rtn;
      end;
    END;
    --select * from table (test_pkg.get_rows(null));
    I am able to retrieve the data using the select.
    However when I try to access its wsdl I get an error :
    <soap:Envelope>
       <soap:Body>
          <soap:Fault>
             <faultcode>soap:Client</faultcode>
             <faultstring>Error processing input</faultstring>
             <detail>
                <OracleErrors></OracleErrors>
             </detail>
          </soap:Fault>
       </soap:Body>
    </soap:Envelope>
    If I comment the function call in the package declaration I get a "correct" wsdl :
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="GET_ROWSInput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
       </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
      <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
           <soap:address location="http://server.domain.ch:8080/orawsv/TEST/TEST_PKG/GET_ROWS"/>
         </port>
      </service>
    </definitions>
    Any hint as how to create and access pl sql web service returning multiple rows?
    I don't use java and don't have access to tools like JDeveloper.
    Thanks!

    The actual issue is that collection types are not supported for return parameters.
    The solution is to wrap the collection into another object.
    Here's a working example based on your settings :
    CREATE OR REPLACE TYPE test_rec is OBJECT ( 
      empno  number(4)
    , ename  varchar2(10)
    , hiredate date
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec; 
    CREATE OR REPLACE TYPE test_array_wrapper is OBJECT ( arr test_array );
    CREATE OR REPLACE PACKAGE test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper; 
    END; 
    CREATE OR REPLACE PACKAGE BODY test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper is 
        results  test_array; 
      begin 
        select test_rec(empno, ename, hiredate)
        bulk collect into results
        from scott.emp
        where deptno = p_deptno;    
        return test_array_wrapper(results); 
      end; 
    END; 
    The wsdl is then generated correctly :
    SQL> select httpuritype('http://DEV:dev@localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS?wsdl').getxml() from dual;
    HTTPURITYPE('HTTP://DEV:DEV@LOCALHOST:8080/ORAWSV/DEV/TEST_PKG/GET_ROWS?WSDL').GETXML()
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_
    ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="CTEST_ARRAY_WRAPPER-GET_ROWSInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="P_DEPTNO-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="RETURN" type="tns:TEST_ARRAY_WRAPPERType"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:complexType name="TEST_ARRAY_WRAPPERType">
            <xsd:sequence>
              <xsd:element name="TEST_ARRAY_WRAPPER">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ARR">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="TEST_REC" type="tns:TEST_REC_IntType" maxOccurs="unbounded" minOccurs="0"/>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
          <xsd:complexType name="TEST_REC_IntType">
            <xsd:sequence>
              <xsd:element name="EMPNO" type="xsd:double"/>
              <xsd:element name="ENAME">
                <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                    <xsd:maxLength value="10"/>
                  </xsd:restriction>
                </xsd:simpleType>
              </xsd:element>
              <xsd:element name="HIREDATE" type="xsd:date"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:CTEST_ARRAY_WRAPPER-GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
        <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
          <soap:address location="http://localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS"/>
        </port>
      </service>
    </definitions>

  • Freight Header with Access sequence only to apply on the header.

    Hi Colleagues,
    I have a requirment to make Freight to be maintained as the Header condition.
    This should not apply in the item at all.
    In the standard SAP, the Header condition is always to be maintained manullay and can not be controlled through the access sequence(condition records)
    What are the other ways that we can have this working.
    Thankyou.

    Hi,
    There is no way in SAP to have the pricing only at header but not distributed to line item, even the pricing entered at the header gets distributed to each line item. Any price mentioned at the header has to be distributed to line item to calculate profitiability at the line item and in case of billing of the documents, unless the amount is appropriated to each line item, system cannot calculate correct billing amount in case of split of order into multiple billing document.
    I am not sure of your exact requirement but if you are looking to charge the flat amount on each document, you could do so by using group condition.
    Create a condition type with the following parameters:
    Calculation type = B
    Group  Condition = Active
    Group Condition Routine = 01.
    Assign an access sequence which contain the access fields from the header of the doucmnet so that condition type is captured at each line item with the same condition record number. Since all the line item will belong to common group and will have same condition record number whcih is fetched at each line item, system will apply only the amount mentioned in the condition record in the document. i.e. If condition record specificies 50$ as the amount, a total of 50$ will be applied on the doucment and will be distributed to each line item based on the value of each line item.
    In case the above solution does not meet your criteria or fits your situation.. please elaborate on the exact business scenario / requirement.
    Regards,
    Naveen Aggarwal

  • New Access Sequence for Free Goods Determination

    Hi Guru's,
    I Have  a scenario wherein i have to maintain the free Goods Condition records in VBN1 with a new access sequence namely Customer/Distribution Channel/Plant/material.
    I have maintained all the necessary settings such as Free Goods Activation for Item Category, Assignment of free goods pricing procedure to my sales area,Positioning of R100 condition type in my pricing procedure with relevenat routines.
    At my Sale order level after maintaining the free goods condition record in VBN1 in new access sequence, my free goods determination is not happening and at the sme time if i maintain it in the standard access sequence i.e. in Sales Org/Dist.Channel/Customer/material the free goods are getting determined.
    Can anybody help me out in this..
    Regards
    Bhushan

    Hi
    There arew 2 things to be done or checked
    1. Position your access sequence before the standard one by giving step nos accordingly
    2.In the existing sequence check for the exclusive indicator in the standard sequence and i think that is ticked in your case
    Hence after getting the condition record in the standard sequence the system stops searching for the new records in your new access sequence
    If that is the casethen remove exclusive indicator from the standard one and tick the same in your new access sequence
    By this you can get the condition records of your new access sequence without positioning
    Pls reply whether mu suggestion has helped you
    Raja

  • Access sequence for stock transfer order

    Hi,
    My client is a paper industry. client is procuring raw materials from forest center. We are considering forest center as plant 1800 and paper mill as plant 1100. several depots has been created under forest center and considering them as storage location. goods receipt at forest center is happening through scheduling agreements. stock is transfered from forest center depots to mill through stock transport order.
    For each depots, freight value per MT is fixed for transporting goods from forest center to mill. Clients requirement is to maintain the rates for freight for each depots so that it will pick from condition records. No need to enter freight value in stock transport order.
    I have created an access sequence for combination of plant (1800) and forest center depots and maintained condition table. but it is not working as in stock transport order, there is no storage location option for supplying plant. In stock transport order supplying plant is forest center (1800) and receiving plant is mill (1100).
    Please guide me where to maintain the freight rate as this is mandatory for my client.
    Thanks
    Prasant

    Access seq with depot will not work becuse you don't have the storage location field in the header
    Rather create the diff pruchase group for each depot and assign them in STO based on your depot(storage location)
    and create the access sequence based on the palnt and purchase group than it will work.

  • How to store multiple records for one master reocrd using sequnce

    dear,
    my question is in one form i have master block f and detail block.
    my question is i created one sequence and assign to master table. but i dont know how to assign that sequence to multiple record in detail table for that particular master record. i got lots of answer previously but i m not getting exactly.pls tell me full procedure otherwise gv me one demo application
    NOTe: the sequnce is created after master record commiting to database.
    PLS pls help me
    Thanks
    damby

    i did not get answer pls help me.

  • How can i update multiple records at same time in psa

    Hi,
    i need to modify certain column's value in psa. for one of InfoObject  fix value i need to change to some other value, can i write some routine or any other way to do so quickly.
    thnx

    If you are in prod, its tough to write code to manipulate PSAs. First of all, you need to transport your Program. Also, if you make a mistake, you can potentially change other PSAs.
    If you insist, get the name of the PSA. Go to RSA1, PSA tab. THere, right click on your infosource and select Delete PSA. DON'T DELETE anything in this screen. Just copy the Table name (look around, you will find it there). Now, go to SE16 and lok at the table contennts. If you give Req, data pack, etc, you can access multiple records. Now, write the program "carefully"  to access and change records in this table.
    There is another way, but this will work-out for you.
    Uday-Ram Chamarthy

  • How to select multiple records from a TREE in the table

    HI,
    I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
    Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
    Regards
    -Sandip

    Rashmi/Kukku,
    First of all, Thanks for your help!
    Is there any other way in which we can access tables other than using BAPIs or RFCs?
    In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
    Krishna Murthy

  • Access Sequence JEXC missing after upgrade to EHP7

    Dear Experts,
    we are facing an error while saving excise invoice through transaction J1IIN in development system after upgrade to EHP 7, Access sequence JEXC missing  ( ) Message no. VE306, could you please suggest to find out solution.
    Regards,
    Amit Anasane

    Dear All,
    Thanks for helping with your valuable suggestions, finally i got solution of it,
    The root cause of this problem was the change in the table T682I by theEHP7 upgrade.The fields KOTABNR has been changed from NUMC(3) to CHAR(3).With NUMC type the wrong statement works anyway.With CHAR type it retrieves no records. thus creating this error message, so it was a pure ABAP programming error. i am closing this discussion once again thanks to all.
    Regards,
    Amit Anasane

Maybe you are looking for