Problem in Function while creating dependency not getting solved

Hi All,
I am not getting any solution even after debuging it many times,
This is second time I am posting same problem , Please help me out if possible
I am  working on a Program in which I have to create Class , local and global dependency -
For class createion i am using
BAPI_CLASS_CREATE
For local dependency i m using
CAMA_CLASS_MAINTAIN_DEP
For Global dependency i am using
CAMA_CLASS_ALLOCAT_GLOB_DEP
Now my problem is that I am able to create Class and only 1 of the dependency either local or global whihever function I am calling first
But while debugging program I am able to create Class as well as both dependencies successfully
Please can any one tell while this is runing successfully only at the time of debugging
Code -
have used -
CALL FUNCTION 'BAPI_CLASS_CREATE'
EXPORTING
CLASSNUMNEW = TCLASS-CLASS
CLASSTYPENEW = TEXP1-KLART
CLASSBASICDATA = CLASSBASICDATA
CHANGENUMBER = SAENNR
TABLES
CLASSDESCRIPTIONS = CLASSDESCRIPTIONS
CLASSLONGTEXTS = CLASSLONGTEXTS
CLASSCHARACTERISTICS = CLASSCHARACTERISTICS
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = TRET2.
CALL FUNCTION 'CAMA_CLASS_ALLOCAT_GLOB_DEP'
EXPORTING
CHANGE_NO = SAENNR
KEY_DATE = SY-DATUM
TABLES
CLASS_DEP_ASSIGN = T_GLBDEP
EXCEPTIONS
ERROR = 1
WARNING = 2
OTHERS = 3.
CALL FUNCTION 'CAMA_CLASS_MAINTAIN_DEP'
EXPORTING
CLASS = TCLASS-CLASS
CLASS_TYPE = SKLART
DEPENDENCY_DATA = T_DEPDATA
CHANGE_NO = SAENNR
KEY_DATE = SY-DATUM
TABLES
SOURCE = TSOURCE
EXCEPTIONS
ERROR = 1
WARNING = 2.
I have no problem in creating Class using Bapi ,
Problem I am facing here in creating Local and global dependency together which i am able to create in debugging mode only otherwise either Local or global whichever function i am using first
Regards
Preeti

duplicate post locked
Re: Problem in Function while creating dependency

Similar Messages

  • Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this....

    Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this.....I have set the email setting to "push" mode. Moreover I can't edit the mail server address ....current it's on Yahoo SMTP server

    Will it get rectified and restored...if so after how long. What could be the reason for such outage kindly share,  as I am facing real problem because of this...

  • I have I.O.S. 6.0.1 and i live in Georgia, Tbilisi. I have got the problem with maps. It does not get directions. Per exemple it was working in italy but in my cuntry it does not work. Could u explain me what can i do to make my maps work in Georgia?

    I have I.O.S. 6.0.1 and i live in Georgia, Tbilisi. I have got the problem with maps. It does not get directions. Per exemple it was working in italy but in my cuntry it does not work. Could u explain me what can i do to make my maps work in Georgia?
    Thank u

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • Queuename cannot be build with function(while creating invoice VF01) IDoc

    Hi all,
    I had a problem while posting an invoice with reference to the delivery document . we had configured partner profile with INVOIC02 and extension for that. and maintained Transfer IDocs immediately. queue processing is enabled . before implementing OSS notes it is working fine. after implementing these notes we are getting update termination message and the invoice document is not getting saved.  the notes are 0001019483 and 0001280898 .
    After implementing notes rule is enabled and in that rule we had given IDOC_QUEUE_SUS_MM. and we had done cofig for that in we85.
    the message is like this.
    Update was terminated
    System ID....   R1Q
    Client.......   100
    User.....   ABOSE
    Transaction..   VF01
    Update key...   4DF9276AC53F16E6E100800082180442
    Generated....   16.06.2011, 12:43:49
    Completed....   16.06.2011, 12:43:50
    Error Info...   B1 519: Queuename cannot be build with function:
    Please helpme out
    Thanks & regards
    sreehari p

    Dear Reddy,
    This may due to two reasons
    1.Itemcategory settings
    2.Copy control settings at item level between your sales document type and your billing type ZF3.So fallow these steps you can rectify the issue.
    -->You go to the VOV7 transaction then select item category ZAPT TAP then go in to the details of that here you can find the field Billing Relevance maintain this field "B" or "C" if you are doing order related billing.
    -->Go to VTFA transaction click on change icon (Top Left Corner)then select your billing type ZF3 and sales order type then click on the item here you select the itemcategory ZAPT TAP then go in to the details screen here you need to enter the copying requirement routines.
    Standard routine is 002-item/order related in the Copying requirements field.
    Standard routine is 001-Inv.split (sample) in the Data VBRK/VBRP field.
    And also check the Header level copy control settings
    Maintain these settings then try
    I hope it will help you
    Regards,
    Murali.

  • Error while Creating dependency

    Hi All,
    Am trying to create dependency thru cu01. However due to some reasons while checking for syntax error it is throwing me an error saying "Function XYZ is not yet declared."
    Can anbody give an insight on it.
    Thanks

    Hi,
    May be you are trying to provide some input which is not declared already eg.you are giving a characteristic value which is not provided as the list of values for the characteristic. Pls note that characteristic values are case sensitive.
    The syntax for various dependencies are provided below.
    PRECONDITIONS
    MODEL EQ u2018RACINGu2019 WHERE
    MODEL IS THE CHARACTERISTIC
    RACING IS THE VALUE OF THE CHARACTERISTIC
    TO ENSURE THAT THE CONDITION IS NOT VIOLATED EVEN WHEN THE VALUE OF THE CHARACTERISTIC IS EMTPY
    MODEL EQ u2018RACINGu2019 AND SPECIFIED MODEL
    PRECONDITIONS CAN BE ASSIGNED TO CHARACTERISTIC, VALUE OF A CHARACTERISTIC.
    SELECTION CONDITIONS
    S.Cs CAN BE ASSIGNED TO CHARACTERISTICS, BOMs, PRTs, etc. IT IS UNAMBIGUOUSLY TRUE UNLIKE PRECONDITION.
    SYNTAX IS
    MODEL EQ u2018RACINGu2019 WHERE
    MODEL IS THE CHARACTERISTIC AND RACING IS THE VARIANT
    PROCEDURES
    THEY ARE USED TO INFER VALUES FOR CHARACTERISTICS. PROCEDURES CAN BE ASSIGNED TO CHARACTERISTIC, VARIANT OF A CHARACTERISTIC, CONFIGURATION PROFILE, BOM AND OPERATION TASK LISTS. PROCEDURES ARE ALWAYS USED FOR PRICING.
    SYNTAX OF THE PROCEDURE IS
    $SELF. CHARACTERISTIC1 = VARIANT1 IF CHARACTERISTIC2 = VARIANT2
    THE VARIABLES ARE SELF EXPLNATORY.
    USING PROCEDURES,
    DEFAULT VALUES CAN BE SET, CHANGED, DELETED
    NEW CALCULATIONS CAN BE MADE

  • While Creating Trasnsaction not taking variant in 'Start With Variant'

    I am trying to create a transaction for report  with variant created through se38 (while creating report). but when I give variant name  in 'Start with Variant '.
    and try to save it, it gives message 'No System Variant chosen for nonlocal objects'.
    How can I create transaction with variant

    HI
    I have created a Tcode in SE93 as u sain using the varints.
    in clint 300
    1.in se93 main screen ihanve enter ZXX_TEST name then pressed create button.
    2. then next screen i have selected the 2nd radiobutton(program and selection screen).
    3.In Program filed I hve given program name.
    4. in START with variant  I have given variant name AA.. this is existed in Clint 320, but not existed in Clint 300).
    5. if i run this in clint 300 it gives me error because variant AA is not existed in the Clien 300.
    6. If i run this in Client 320.. then it is runnig with variant AA.
    The variant u r using is not existed...
    Check the Vairint is existed or not.. where u r running this.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • MessageDriven Bean problem.Working but the queues r not getting cleared

    I have written a simple message driven bean.It just sends a message to an another queue myadapterqueue
    on getting a message .
    It is working. But the problem is if I restart my application server then it again reads the messages which had been sent to it earlier.Also the queue size is
    not getting to 0 bytes after it has consumed messages.
    My application server is JBOSS2.4.3
    I think I have to specify some attributes in the
    descriptor files.But how??????????????
    Here is my code
    import java.util.*;
    import javax.ejb.*;
    import javax.jms.*;
    import javax.naming.*;
    public class MyMessageBean implements javax.ejb.MessageDrivenBean,javax.jms.MessageListener
         private QueueConnection connect=null;
         private QueueSession session=null;
         private QueueSender sender =null;
    private Queue sendQueue=null;
    private MessageDrivenContext ctx = null;
         public void setMessageDrivenContext(MessageDrivenContext mdc){
              System.out.println ("In setMessageDrivenContext--------------");
              this.ctx=mdc;
         public void ejbCreate(){
              try{
                   System.out.println ("Message bean Created--------------");
                   InitialContext jndi=new InitialContext();
                   QueueConnectionFactory queueFactory=(QueueConnectionFactory) jndi.lookup("ConnectionFactory");
                   connect=queueFactory.createQueueConnection();
                   session=connect.createQueueSession (true,Session.AUTO_ACKNOWLEDGE);
                   System.out.println ("After session creation--------------");
                   sendQueue=(Queue)jndi.lookup("queue/myadapterqueue");
                   System.out.println("************ queue/myadapterqueue");
              sender=session.createSender (sendQueue);
              System.out.println ("Before Connection start--------------");
              connect.start();
              }catch(javax.jms.JMSException jmse){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
              }catch(javax.naming.NamingException jne){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
         public void ejbRemove(){
              try{
              System.out.println("ejbRemove done");
              connect.close ();
                   this.ctx=null;
              }catch (javax.jms.JMSException jmse){
                   System.out.println ("In ejbremove exception-------------------");
                   System.out.println("ejbRemove excetion");
                   throw new javax.ejb.EJBException();
         public void onMessage(Message msg){
              try{
              this.sender.send (msg);
              this.session.commit();
              System.out.println(" Message");
         }catch(javax.jms.JMSException jmse ){
              jmse.printStackTrace();
    here are my descriptors
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <ejb-name>MyMessageBean</ejb-name>
    <ejb-class>MyMessageBean</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    and the correspong xml file for the application server here is jboss.xml
    ?xml version="1.0" encoding="UTF-8"?>
    <jboss>
    <enterprise-beans>
         <message-driven>
              <ejb-name>MyMessageBean</ejb-name>
              <configuration-name>Standard Message Driven Bean</configuration-name>
              <destination-jndi-name>queue/MyMessageBeanQ</destination-jndi-name>
         </message-driven>
    </enterprise-beans>
    </jboss>

    it is unclear whether you are commiting on the first queue or second one.
    but it appears like you have created a transactional problem across the two queues. although you commit on the first queue, this commit is not extended to the second queue.
    things will be fine unless you get an exception of shutdown.
    if you shut your message provider down first then you cannot send the message to the second queue. (assuming that queue 2 is also on the same server)
    if you shut your MB app server down then you may be in the middle of accepting a onMessage callback from the first queue.
    do you have another MB that registers this one as a listener, or are you infact sending a message back onto the same queue...
    public void onMessage(Message msg){
    try{
         this.sender.send (msg);
         //your server may shutdown here and leave messages on the first queue. and send extra messages on the second.
            this.session.commit();
            System.out.println(" Message");
    } catch(javax.jms.JMSException jmse ){
            jmse.printStackTrace();
    }

  • BAM: Problem with 'Binding' while creating event linkage

    Hello colleagues.
    We have an ECC 6.0  and a PI 7.1 system. I want to create a prototype using the features of BAM.
    In transaction SWF_BAM, i tried to create a binding for the OB proxy parameters and the event object parameters. Unfortunately, the proxy class no longer has the method 'EXECUTE_ASYNCHRONOUS' and hence i am unable to create the binding.
    Any pointers on how to go about this. Please also let me know if i am not doing it the right way.
    Regards,
    Keshav

    HI Keshav,
    Try writing the method which u create in the same name as the implementing class; also known as the provider class. I have faced the same problem, and when writing the method, use the operation name, which is used in PI 7.1, while creating the interface, and there shouldn't be any problem during Binding.
    Regards,
    Abhisek.

  • Not only do web pages not load properly but we're doing calculus on-line and only 1 video can be viewed at a time. last week we didn't have problem. wish i could call someone. not getting any help.

    a number of site say done and we see a blank page. on-line calculus class, last week could view more than 1 video at a time now only 1 can be viewed. this course need to be completed by may 3. career builders some of the drop downs aren't working. need to find a job. these are serious errors that we did not experience before. we haven't updated to 4.0. now i see the one's who have are having these problems. daughter can't gt to e-mail. wish i could talk to someone. i'm going to try the live session at 2 but i'm not a techy. can take care of most problems, but this seems beyond me. HELP
    s

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • Problem in mapping while using Do not Use SOAP Envelope

    Hi All,
    This is wrt my thread 'Removing and adding SOAP Envelope'
    I am currently working on SOAP-XI-Proxy Scenario.
    For some un avoiadable reason, I had to use the option 'DO not use SOAP Envelope' .So the SOAP Envelope came withen the payload and in the pipeline, I can see the payload prefixed by '<?xml version="1.0" ?>' .
    Now my payload looks like
    <?xml version="1.0" ?> ( no more the encoding="utf-8" notation is there)
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <Complaint_Request xmlns="urn:******createserviceticket">
      <CaseNo>12345</CaseNo>
      <CustomerNo>12345</CustomerNo>
      </Complaint_Request>
      </soapenv:Body>
      </soapenv:Envelope>
    To accomodate the change, I also changed my request structure as
      <Complaint_Request> (My new message Type)
        <Envelope>
         <Body>
           <Complaint_Request> (My previous message Type)
            <caseNo>
            <CustomerNo>
    But I am facing problem in mapping the values to the target structure (which is a flat structure),
    as the payload doesnot start with ' ns1: ' notation any more . Even XSLT mapping is not working.
    When I am pasting the payload in the Testing Mapping Editor, the Source Node are correctly
    formed, but all come in RED . But as the root node , ie 'ns0' is not there, the value
    from child nodes are not getting mapped to the target fields.
    Regards,
    Subhendu

    Hi Joel,
    SAP says, when we use the option 'DO Not Use SOAP Envelope', the payload also contains the SOAP
    Envelope. So it is obvious that the payload wont start with 'ns0' notation.
    So I am searching for a solution, when we use that option.
    Regards,
    Subhendu

  • Error while creating Delivery Note from Sales Order

    Hi,
    I am trying to create Delivery Note from Sales Order. But, I am getting one error sayin "An Item with no delivery quantity is not permitted.Item will be deleted". Hence, the delivery note was not created.
    Can you please let me know, why this error comes. And how to rectify this error.
    Please let me know, what are all checks, I need to do, to know this error.
    Thanks,
    Sandeep

    Hi
    There may be following reason :-
    Either the relevant Item Category is not relevant for Delivery, Check the Item Category in Sales Order and then check the settings of this Item Category in VOV7.
    Also check the relevant Schedule Line in VOV6, it should be relevant for Delivery.
    The Other reason may be that your schedule line in Sales Order is Not confirmed for Available Quantity so check the Sales Order> Line Item> Schedule Line.
    Regards
    Amitesh Anand

  • While creating the user getting iPlanetAMUserService does not exist error.

    Hi,
    I was trying to create a user in access manger 7.1 console . I am getting error like iPlanetAMUserService does not exist.
    path: Access control>Realm>Subjects.
    can anyone please help me to give the suggestions.
    Thanks
    GV

    And why do you think those jars are required? Guess work? Glassfish already provides them, remove them from the application deployment and try again.

  • Problem with MB1C while creating sales order stock

    Hi all,
    I am working  in MTO scenario. I have taken the requirements type as "KE" & assigned the requirements class "ABC". This "ABC" is copied from requirements class "40".
    I have created a sales order with 1 line item and in MB1C when i create the stock, the system creates the stock for the sales order.
    <b>Problem:</b> I start with creating the inquiry - quotation on the basis of inquiry - sales order on the basis of quotation. Now when i go to MB1C to create the sales order, I get the following error:
    <b>"Account assignment cannot be carried out because of different origin no."</b>
    Message no. <b>V1134</b>
    <b>Diagnosis</b>
    The sales document to which you want to refer is based on sales document 108 and item 000010. Therefore, the settlement and possibly inventory management are carried out using the number of the preceding document.
    <b>System Response</b>
    This entry is not allowed.
    <b>Procedure</b>
    Enter the document and the item number of the preceding sales document.
    Also if for the same sales order i run the <b>MRP</b> using <b>MD50</b>, then in the transaction code <b>MD04</b> - the system shows the reference of the <b>"inquiry document number"</b> for the production order. The production order should take the reference of the sales order number.
    For the requirements class in the fields <b>"Acct Assgt Cat"</b> & <b>"Valuation"</b> i have selected <b>"M"</b>
    Regards,
    Allabaqsh G. Patil
    Message was edited by:
            allabaqsh patil

    Hello Allabaqsh,
    How did you solve the problem?
    I am facing the same problem.

  • Locking problem in BPS solution not getting solved  using RSPLSE. SEM_BPS_S

    Can anyone tell me exactly what "rsplse" offers to solve locking in BPS?
    We have made correct selection of characteristics (in our case "costcentre" infoobject) in tab "Lock characteristics" , but still when two people are trying to access (write) data in the same transactional cube against the different cost centres, the system is throwing an error message Cube “zIC_ccp” is locked by username.  (Or if a single person is using the two packages simultaneously using  two web sessions , he is getting the same error. )
    Our assessment is that he should not be facing this locking problem because cost centres here are acting as a “key” to different selection as configured in “rsplse”. 
    Can anyone tell me how to use parameter SEM_BPS_SAVE_UNLOCK. I want to know t. code and other t . code and other details to execute SEM_BPS_SAVE_UNLOCK.

    Hi,
    Please check the OSS note 635244.
      From the OSS note :
    <b> Notes on SET/GET parameters SEM_BPS_NO_LOCK, SEM_BPS_SAVE_UNLOCK :</b>
    These two parameters have nothing to do with the problem described above. They are only designed to facilitate the Customizing process, if users carry out Customizing in t ransaction BPS0 within a project.
    <b>SEM_BPS_NO_LOCK:</b> This parameter has the effect that transaction data is not locked at all. Never use this parameter in a production system. As of Support Package 14 for Release 3.1B, parameter SEM_BPS_NO_LOCK is released by an additional switch in table upc_dark2: For this purpose you have to maintain a record with param = ENABLE_NO_LOCK and value = X in table upc_dark2. Only then the system includes parameter SEM_BPS_NO_LOCK. The parameter can then be useful if you want to test functions or the manual planning with 'test data' in Customizing.
    <b>SEM_BPS_SAVE_UNLOCK</b>: This parameter only works in transaction BPS0; it has the effect that the system unlocks data (if possible) after it has been saved. Therefore, the system only simulates an exit and reentry in transaction BPS0 with the last active detail application. Therefore, the above parameter can be helpful if many people work on Customizing in transaction BPS0, because objects can be unlocked earlier.
    Regards,
    Siva.

  • Error while creating user - not authorized to assign profiles or roles

    I have configured CUA according to the help.sap.com instructions.  I am getting this error (in TCODE SCUL)..
    +You are not authorized to assign profiles
    Message no. 01589
    You are not authorized to assign profiles to users or to cancel the authorization.+
    I can create the user, change the address data, and initial password.
    I get errors on assigning to a group, parameters, or the role and profiles. 
    We are on NW Mobile 7.1 (ABAP stack only) SP05.
    I've read Note "492589 - CUA:  Minimum authorizations for communications users."
    It mentions SP07.  Is this not compatible?

    > Run SU53 (immediately after you receive the error message) and check which authorizations that failed. You probably miss S_USER_PRO with activity 01 or 02 from your own roles.
    I think that will not work in his situation. The errors show up in SCUL so they may come from one or more of the CUA children. Running SU53 in the CUA master will (if that is the case) not provide the necessary info.

Maybe you are looking for

  • First BT keyboard, now BT mouse, won't connect

    Yesterday my Apple BT keyboard wouldn't connect. Flashing green light on kb. Changed batteries, no difference. Deleted pairing. When creating new pairing, it sees the keyboard but can't receive the pairing code. I read the forum here, figured I wasn'

  • Finding a Script Name used in System Program

    Hello Friends, Is there any way by which we can find the name of SAP Script used in any perticular System program. If yes please tell me, Thanks in advance..... ...

  • How do I get an xterm window (from X11 running) to be non-VT100?

    I am trying to connect to a Sun Workstation machine via a wireless connection to start up an xterm session. I want to use some graphic-intensive programs on the Sun system, but for some reason, my doing an remote ssh into the machine reports that my

  • Additional error handling within a production application using SQLERRM

    I have an application that is already in production. What I would like to do is to add additional error detail currently captured within the SQLERRM. I would like to capture detail such as: where the error occurred ie. what procedure in which package

  • Can´t login after reboot ?

    My MacBook Pro went in to reboot and when it starts up I can choose between "My usersname" or "Guest", but when I click on "My username" it just keep loading a bit and then show the Mac Stop sign. I can log in as guest and log in trough Coomand+R, bu