Create API append in the transaction COMM_ATTRSET

Hi Friends,
We have implemented the Note <b>602673</b> to Download R/3 ERP Material Sales Status MVKE-VMSTD to CRM.
We have overlooked the point in the Note where it is mentioned that the check box <b>Create API append</b> should be checked while including the settype in the transporting request. We have found this when we read the document again and looked at the menu path Settype/Attributes -> Transport -> Include in Request. We entered our newly created settype here and and we could see that the check box Create API append is not enabled.
The problem is, we are having some BDocs in the intermediate state. When we reprocess them in the Development system they are processed successfully. But when we reprocess the BDoc in the Production system, it gives a dump with the DUPLICATE_ENTRY exception raised.
Our doubt is,
1. Does the enabling of the check box mentioned above will solve the problem?
2. What is the impact when this check box is checked or unchecked?
3. Is there any other reason for this dump? If so how to solve that?
We have found that in the BDoc, we have MNT_SETTYPE table filled with the settypes. In the Development system we have the newly created settype only once, but in the Production system the settype is seen twice. Is this the reason  for the dump.
Please revert back with your ideas and solutions. You will be definitely rewarded with points.
Regards,
Raju

Hi Murali
Thanks for the reply..
But my question is what is the reason for the dump when I reprocess the BDoc in the Production system. And why the settype entry in the BDoc is twice?
The dump shows that the exception is raised from the include program SET_RELF41 and in the code
update buffer
  INSERT ls_prrel INTO TABLE gm_prrel.
  IF sy-subrc NE 0.
    RAISE duplicate_entry.
  ENDIF.
  DELETE TABLE gm_prrel_delete FROM ls_prrel.
How to solve this?
Regards,
Raju

Similar Messages

  • How to create a node in the transaction?

    Hi !
    In R/3 , How can i create  a node  underwhich I want to assign my generic datasource?
    I went to RSA5, there create node is hidden under hierarchy menu item.
    Waiting for your reply.
    Regards
    Durai

    Hi Vineet,
                       There is no way to create a node in the interface. But DDIC type interface can be created with similar structure to the node in the ABAP Web Dynpro Component.
    Ranganathan.

  • API for clearing the transaction data in cube

    Hi,
    I am doing the autoamtion test for my BW application.
    I need a function module or class method to clear all transaction data in my cube.
    Just like the 'delete data' fucntion in the context menu of cube in RSA1.
    Thanks a lot in advance!

    Hi ,
    Try this FM : RSDRD_SEL_DELETION
    And try this tcode also : delete_facts.
    Hope the above reply was helpful.
    Thanks & Regards,
    Ashutosh Singh

  • Using exit/BADI  to create settlement for the Transaction COR1

    Hi Experts,
    My Requirement is when we are creating Process Order in the Transaction COR1, Settlement Rule will be automatically created by using some User Exit or BADI to assign the cost centre, account assignment category, and settlement percentage for the setup to the Settlement Rule.
    I have tried with the User Exit: EXIT_SAPLKOBS_001 Enhancement COOM0003 and also tried with EXIT_SAPLCOI1_027 enh. IWO10027.
    The Problem is above mentioned User Exit are not triggering though I have activated project.
    What is wrong with my exit or please let us know correct User Exit or BADI?
    I appreciate every help.
    Thank you.
    Nimai

    Try with below Exits related to COR1 transaction.
    Exit Name      Description
    CCOWB001     Customer exit for modifying menu entries
    COIB0001     Customer Exit for As-Built Assignment Tool
    COZF0001     Change purchase req. for externally processed operation
    COZF0002     Change purchase req. for externally procured component
    PPCO0001     Application development: PP orders
    PPCO0002     Check exit for setting delete mark / deletion indicator
    PPCO0003     Check exit for order changes from sales order
    PPCO0004     Sort and processing exit: Mass processing orders
    PPCO0005     Storage location/backflushing when order is created
    PPCO0006     Enhancement to specify defaults for fields in order header
    PPCO0007     Exit when saving production order
    PPCO0008     Enhancement in the adding and changing of components
    PPCO0009     Enhancement in goods movements for prod. process order
    PPCO0010     Enhancement in make-to-order production - Unit of measure
    PPCO0012     Production Order: Display/Change Order Header Data
    PPCO0013     Change priorities of selection crit. for batch determination
    PPCO0015     Additional check for document links from BOMs
    PPCO0016     Additional check for document links from master data
    PPCO0017     Additional check for online processing of document links
    PPCO0018     Check for changes to production order header
    PPCO0019     Checks for changes to order operations
    PPCO0021     Release Control for Automatic Batch Determination
    PPCO0022     Determination of Production Memo
    PPCO0023     Checks Changes to Order Components
    STATTEXT     Modification exit for formatting status text lines
    Regards,
    Saurabh

  • SAP transaction iView not executing the transaction directly

    Hello guys,
    having a little problem with SAP transaction iView I created - specified system, where the transaction is delpoyed. When I click on the page containing the iView, R/3 logon page comes up instead of the transaction itself being executed. The user and password are the same for the portal and R/3. Do I have to do the mapping then? I so, it would mean I would have to crate mapping for every single portal user. Isn't it possible to make the portal to automatically use the user id/password of the logged-in user?
    Thanks a lot for any ideas at all,
    Frank

    Arun,
    I am a bit confused now to be honest. If you mean 'SAP GUI Type' property, at the moment it is set to 'Select' value - it means that no value is selected. I already tried to use 'WinGui' but I couldn't get through to R/3 transaction either.
    We are using standalone ITS.
    Thanks,
    Frank

  • How do I create a new Work Center for the transaction launcher and links

    Hi
    The requirement here is for me to find out if I can create a new Work Center that will contain up to 6 assignment blocks and each block having either links to websites and BW reports, or triggers to R/3 applications via the transaction launcher.
    Can I do this purely through customising or do I need to create a new view using BSPs? If I can do it through customising please could I have a few pointers to what component I would need to use/copy?
    Regards
    Declan

    Hi Robert,
    Thanks again for taking the time to reply.
    Just so I understand, if I want to show a work center I need to link it to a component / view? I think this was the original query - do I need a developer to create the view that contains the 6 blocks with their links to reports, transactions and websites? I think when I talk about blocks I mean 1 viewset containing 6 views. There is no SAP standard view that would suit my requirements is there? Even if the work center had 8 views, I can always hide the two views in configuration.
    After the developer has created the view, I then reference that component in the target Id in the define logical links section of my work center.
    If my understanding is right, then it follows that it is not possible to create a user specific work center without some development.
    Is this correct?
    Cheers
    Declan

  • How to Create a table in the middle of a transaction ?

    This software was written for sql and has a number of temporary table calls within transactions. We cannot precreate the temporary tables as some of the columns vary.
    So we create temp tables on the fly during the transaction, but the problem with that is that Oracle will commit your transaction at the point you create a temp table.
    Here's the logic:
    Begin Transaction
    Do some inserts, updates and deletes (IUDs)
    Create Global temp Table zx as select <some of those IUDs>
    Do some more inserts, updates and deletes
    Drop temp tables
    If worked
    Commit
    else
    Rollback entire transaction
    This is what I've tried so far:
    1. Run the create table on a different connection - has no visibility to the IUDs in the current transaction
    2. Split the create table and insert (instead of using CREATE AS) statements - to allow just the create table to be on a different connection - its going to be too much work to rewrite all the statements
    3. Create a permanent table instead of a temp table - same problem with committing data before the transaction has ended
    4. Put the Create As in a stored proc with AUTONOMOUS TRANSACTION turned on - same problem it has no visibility to the current outer transaction

    Thanks for coming on this thread
    The tables are used throughout the product, for example to
    (a) simplify complex queries, some too complex for oracle to process in one stmt
    (b) sub selects which will be reused
    (c) performance enhancements
    (d) left joins to summary queries
    We have 120 tables in our data model and there are many scenarios where temp tables are used. In sql server its not considered such a problem and programmers often create temp tables "on the fly".
    In fact, when we ported to oracle a couple of years ago, we had to add more temp table creates because some of the queries were too complex for oracle.
    It would be at least a months work to rewrite so temp tables are either not used or precreated, and we really have to go live with this build by the end of the week.
    No doubt we will rewrite these parts of the product to cut out temp tables, or perhaps drop oracle as a supported database, but for the time being we have oracle customers waiting for other fixes so I must find a way of giving them this software without doing this huge rewrite

  • Exit/Badi in the transaction of production order create or change (CO02)

    hi all,
    I need an exit/Badi in the transaction of production order create or change (preferably during SAVE).
    I want to change structure AFVGD-usr02,AFVGD-usr03 .
    <b>PPCO0007 Exit when saving production order</b>
    the exit is not applicable EXIT_SAPLCOZV_001 .

    Hi
    we around 200 exit for this tcode i found only three badi for this tcode.
    AFABD_CHANGE          Change Relationship
    CAUFVD_CHANGE        BAdI: Overall Network Scheduling with Selection Option
    SIDAT_UPDATE            Change date of price simulation.
    check with this goto se18 and F4 thn give the Package as CO.enter u get this three.
    reward pointd if use full

  • How to call the Salesforce  webservice  create api ?

    Hello Friends,
    I am using Oracle BPEL process manager 10.1.2 .
    I have created the BPEL process project.
    In it I have deployed the Salesforce webservice.
    I have assigned the session id ,URL according to the as given in
    demos->salesforceflow .
    I have called the login api , query api that is successfully called.
    But when I call the Create api then it gives the error at run time that
    "Invalid session id found in session header".
    so please tell me what could be reason for this..
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]
    ====================
    BPEL file is as follows:--
    <process name="SalesforceFlow" targetNamespace="http://samples.otn.com" suppressJoinFailure="yes" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="http://samples.otn.com" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:salesforce="urn:enterprise.soap.sforce.com" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:salesObject="urn:sobject.enterprise.soap.sforce.com" xmlns:ns3="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:ns2="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="tns:SalesforceFlow" myRole="SalesforceFlowProvider" partnerRole="SalesforceFlowRequester"/>
    <partnerLink name="salesforce" partnerLinkType="salesforce:SoapLink" partnerRole="SoapProvider"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="input" messageType="tns:SalesforceFlowRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="output" messageType="tns:SalesforceFlowResponseMessage"/>
    <variable name="createinput" messageType="salesforce:queryRequest"/>
    <variable name="createoutput" messageType="salesforce:queryResponse"/>
    <variable name="Invoke_1_create_InputVariable" messageType="salesforce:createRequest"/>
    <variable name="Invoke_1_create_OutputVariable" messageType="salesforce:createResponse"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in SalesforceFlow.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="tns:SalesforceFlow" operation="initiate" variable="input" createInstance="yes"/>
    <scope name="customerPreference">
    <variables>
    <variable messageType="salesforce:loginRequest" name="loginRequest"/>
    <variable messageType="salesforce:loginResponse" name="loginResponse"/>
    <variable messageType="salesforce:Header" name="headerRequest"/>
    <variable messageType="salesforce:queryRequest" name="queryRequest"/>
    <variable messageType="salesforce:queryResponse" name="queryResponse"/>
    <variable name="partnerReference" element="wsa:EndpointReference"/>
    <variable name="Variable_1" messageType="salesforce:Header"/>
    </variables>
    <sequence>
    <assign name="setSalesforceAuthorization">
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:username"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:username"/>
    </copy>
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:password"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:password"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="login" inputVariable="loginRequest" outputVariable="loginResponse"/>
    <assign name="readSessionConfig">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="headerRequest" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
    <Address/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    <copy>
    <from expression="string(bpws:getVariableData('loginResponse', 'parameters', '/salesforce:loginResponse/salesforce:result/salesforce:serverUrl'))"/>
    <to variable="partnerReference" query="/wsa:EndpointReference/wsa:Address"/>
    </copy>
    <copy>
    <from variable="partnerReference"/>
    <to partnerLink="salesforce"/>
    </copy>
    <copy>
    <from expression="concat( 'select Fax from account where AccountNumber=',ora:addQuotes( string(bpws:getVariableData('input','payload','/tns:SalesforceFlowRequest/tns:accountNumber'))) )"/>
    <to variable="queryRequest" part="parameters" query="/salesforce:query/salesforce:queryString"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="query" inputVariable="queryRequest" outputVariable="queryResponse" bpelx:inputHeaderVariable="headerRequest"/>
    <assign name="Assign_1">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="Variable_1" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="salesforce" portType="salesforce:Soap" operation="create" inputVariable="Invoke_1_create_InputVariable" outputVariable="Invoke_1_create_OutputVariable"/>
    </sequence>
    </scope><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <invoke name="callbackClient" partnerLink="client" portType="tns:SalesforceFlowCallback" operation="onResult" inputVariable="output"/>
    </sequence>
    </process>
    =====================
    WSDL FILE
    =============
    <definitions
    name="SalesforceFlow"
    targetNamespace="http://samples.otn.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://samples.otn.com"
    xmlns:ns1="urn:enterprise.soap.sforce.com"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    >
    <import namespace="urn:enterprise.soap.sforce.com" location="services/enterprise.wsdl"/>
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://samples.otn.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://abo-server:9700/orabpel/xmllib/ws-addressing.xsd"/>
    <element name="SalesforceFlowRequest">
    <complexType>
    <sequence>
    <element name="username" type="string"/>
    <element name="password" type="string"/>
    <element name="accountNumber" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="SalesforceFlowResponse">
    <complexType>
    <sequence>
    <element name="price" type="double"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="SalesforceFlowRequestMessage">
    <part name="payload" element="tns:SalesforceFlowRequest"/>
    </message>
    <message name="SalesforceFlowResponseMessage">
    <part name="payload" element="tns:SalesforceFlowResponse"/>
    </message>
    <portType name="SalesforceFlow">
    <operation name="initiate">
    <input message="tns:SalesforceFlowRequestMessage"/>
    </operation>
    </portType>
    <portType name="SalesforceFlowCallback">
    <operation name="onResult">
    <input message="tns:SalesforceFlowResponseMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="SalesforceFlow">
    <plnk:role name="SalesforceFlowProvider">
    <plnk:portType name="tns:SalesforceFlow"/>
    </plnk:role>
    <plnk:role name="SalesforceFlowRequester">
    <plnk:portType name="tns:SalesforceFlowCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    On your Invoke, click the "adapter" tab and make sure the header variable is selected.

  • We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a m

    We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a method, using Acrobat, to make those updates to the pdf, or must we go back to the doc template and basically generate a new document?
    Also, our resulting pdf documents aren't searchable.  How can we generate pdf documents that are searchable?  I may want to search for a part value or name within the body of these pdf documents, but currently can't do that...very inconvenient.
    Can you assist?

    Not totally sure about the search issue. A lot depends on how you created the PDF and what is in the datasheets you attached (like are they graphics?). The doc portion should be searchable as long as you used print to the Adobe PDF printer or PDF Maker. For your use, it may be that the print is adequate. However, the result should be searchable (unless maybe you had a form with filled in fields and created the PDF with PDF Maker. I think the form data may be retained in form fields and the fields are not searchable. In that case, a print might be a better procedure. (it would help to know the versions of WORD and Acrobat as well as the exact process you used to create the PDF.)
    If the appended data sheets do not change, then you might try opening the original PDF and then using Replace Pages to replace the file created from the DOC file.

  • When am creating the material using the transaction MM01 getting the error

    Hi all,
      Could you please help me to solve this issue, When I am creating the material using the transaction MM01, am receiving the error message "Express document "Update was terminated" received from author "XXXXXXXX", I checked the in SM13 found error message showing in Z_LGPLA_BIN_POSTING.
    Regards,
    Muralikrsihna.

    ST22 Error is : SAPSQL_ARRAY_INSERT_DUPREC, below is full error message
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "Z_LGPLA_BIN_POSTING" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    Regards,
    Muralikrishna

  • TCA API create_location creates locations irrespective of the address style

    Hi All,
    We are using Trading Community Architecture API for customer conversion. We have address styles setup for Canada and US and we have attached these address styles to the respective countries in the territories window.
    But when we use create_location API for creating location and then a party site for it, it allows us to create the locations even when we dont pass in a value for the REQUIRED fields setup at the address style. We expected it to error out.
    Does anyone have idea about how this works. We want the API to validate the addresses we enter for locations with the address styles we set up.
    ketha

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

  • Where the Transaction ID is created in RFC

    HI,
    Where the Transaction ID is created in RFC?
    Kindly help me out.
    Thanks.

    Which session ID are your taking about?
    Are you doing J2EE development?
    -Alexis

  • Use of a new layout create by the transaction KP75

    I Created a new layout with the transaction KP75 but it doesu2019t appear when I use the transaction KP26.
    I think a link is missing between the new layout and something.
    Could you help me, please.
    Thank you.
    Jean-Marc

    You need to assign to the Planning Area in the Planning Profile under SPRO-Controllig-Cost center Accounting-Planning-Manual Planning
    Once you assign it, it would appear as one of the layouts in KP26

  • How to create new relationships in the BP transaction

    Hi ,
    I am very much newto CRM.I have got one requirment to create the relationships in BP transaction.
    After entering the BP transaction ,I have to select the Organisation in the FIND field then i need to select the BP number.After displaying the BP number i need to select display in BP role As 'Client'.Then  in the indentification Tab i will get the value for inustry sector.I need to focus my cursor on industry sector the i will press relationships button.
    In relationship button i will get 4 tabs 1) Overview2)Has employee3)Has Managing Partner relationships4)Has senior relationship partner.
    Here in the relationship i need to add 3 more tabs with 1)sector leader2)sector manager3)cluster leader.
    So how i need to add new relationship tab eaither i need to do this with config or with program i need to handle.Please suggest me.
    Thanks.

    To create new relationship types goto transaction BUBA. There you can easily create your new 3 types with minimum customazing effort.
    Regards.

Maybe you are looking for