Please Help Regarding ME21 (Urgent)

Hello Members,
              I am facing a weird problem.when My
functional person tries to create SERVICE ORDER FROM
transaction ME21 by copying line reference ,account
assignment comes wrong in the subsequent screen means
it takes only particular G/L Account Number instead of
taking the G/L account number from which my functional
person has copied data for  new SO.When i tried to
debug the problem I found one function module in ME21
<b>"MS_ACCOUNT_ASSIGNMENT_PACKAGE</b>" is not working
correctly,everything is fine before this function
module call,but after this module only G/L account
changes dramatically,can any one tell me what could be
the problem Anyone has faced such problem previously.
Please give me solution as soon as possible.

Hi
I don't know very well Service Order, but check the FM MS_GET_SERVICE and/or MS_READ_LIMITS they read the table ESLL and ESUH where they found out the Cost Element (field KSTAR).
Anyway check the data of Account View 1 (field Valuation Class) of your material, the g/l account should be depend on this data.
Max

Similar Messages

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • Please help , regarding fair usage policy....subsc...

    Hello Dear Moderator,
    My skype id is pavank77
    I had accidnetaly exceeded the unlimited india calling subscription on 1 april 2012 and my call would not connect, The subscription is still not active on 2 April 2012....According to skype as far as i searched in the forum it should be active today....
    Please Help regarding this matter. Skype calling is important to me as i am far away from home.
    I would highly appreciate your help.
    Warm Regards,
    Pavan

    I am sorry to hear that your account has been suspended due to Fair Usage Policy.
    For Skype to fully assist you with this concern, we can go through the email verification form by just clicking this link below:
    https://support.microsoft.com/skype/hostpage.aspx?​language=en&locale=EN-US&oaspworkflow=start_1.0.0.​...
    1. Once you are on that page, choose Account and Password.
    2. Choose Blocked Accounts.
    3. Click on Next.
    4. Click on Email Support.
    5. Kindly fill out the form.
    **Please make sure to enter as much information as you can for them to collate enough data to authenticate your identity. It is also important to include the Service Request number together with the issue <SR# - ISSUE>, on the subject field. Once the form is completed it will be forwarded to a special team who will handle your case. You will then receive a follow-up email and will be assisted further in resolving the issue/processing your request.
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • Please Help its an urgent

    Dear,
    I am making BDC for Transcation Code <b>KKS1</b>. In this transcation when we go through the transcation then the output is shown in ALV Grid format and as we know that we can convert an ALV Grid into List output or Excel sheet. which I want finally in EXCEL Sheet Format. During transaction there is no Problem every thing is happening perfectly.
    <b>But if I want to record a BDC for the same</b> then then first of all I have to check the box continue after commit. then only I can record the BDC. because only after checking this box i get the output in ALV format. <b>Now till here I have done sucess fully.</b> Now In BDC I want to convert the  ALV into EXCEL SHEET OR LIST OUTPUT. Generally we can't do this. we have to do this manually but is there any way to convert the <b>ALV Grid into EXCEL Sheet or List Output during the BDC.</b>
    Please help me Out.
    I need it urgently.
    who ever will solve my problem I will reward him 10 Points.
    Siddarth

    Hi Siddarth!
    Like already Erik began to describe:
    most probably you can't use a BDC in a way you expect this.
    Excel is just installed on your PCs, also SAP needs GUI interaction to make an excel sheet. So your call transaction would have to run online - but normally you create BATCH input sessions to run something in background...
    Without GUI you won't get a correct ALV (also this can create it's containers with link to a GUI), nor excel download.
    If it's a one-time action: maybe you can run a BDC online and placing a mobile phone or some other office tool on the 'Enter'-key.
    You can also try to record a CATT (transaction SCEM) or eCATT - they are newer and can handle more dynpro situations, especially one option of eCATT should be able to make scripting.
    Regards,
    Christian

  • Problem in HTMLB..Please Help...urgent....:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    {     public Date toDay, orderDate;
         public String toDayAsString;
         public IListModel deliveryAddress;
         public TextEdit address;
         public DefaultTableViewModel orderLines;
         public Locale locale;
         public String poNumber, model, qty;
         public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
         public BeanOrderDetails()
         {     Calendar cal = new GregorianCalendar();
              toDay = cal.getTime();
              String year = String.valueOf(cal.get(Calendar.YEAR));
              String month = String.valueOf(cal.get(Calendar.MONTH)+1);
              String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
              toDayAsString = year"-"month"-"day;
              deliveryAddress = new DefaultListModel();
              deliveryAddress.setSingleSelection(true);
              deliveryAddress.addItem("1", "Delivery Address1");
              deliveryAddress.addItem("2", "Delivery Address2");
              deliveryAddress.addItem("3", "Delivery Address3");
              //company address
              address = new TextEdit("Company Address");
              address.setRows(4);
              address.setCols(40);
              String line1 = "KPIT Cummins Infosystems Ltd.";
              String line2 = "MIDC, Hinjewadi";
              String line3 = "Pune, India";
              address.setText(line1line2line3);
              address.setEnabled(true);
              //Table creation
              Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              orderLines = new DefaultTableViewModel(data, colTitle);     
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
         public void setLocale(Locale l)
         {     locale = l;
         public Locale getLocale()
         {     return locale;
         public void setOrderDate(Date od)
         {     orderDate = od;
         public Date getOrderDate()
         {     return orderDate;
         public void setOrderLines(DefaultTableViewModel mm)
         {     orderLines = mm;
         public DefaultTableViewModel getOrderLines()
         {     return orderLines;
         public void setAddress(String adr)
         {     address.setText(adr);
         public void setTextEditAddress(TextEdit adr)
         {     address = adr;
         public TextEdit getTextEditAddress()
         {     return address;
         public String getAddress()
         {     return address.getText();
         public void setDeliveryAdresses(IListModel model)
         {     deliveryAddress = model;
         public IListModel getdeliveryAddresses()
         {     return deliveryAddress;
         public void setPoNumber(String pon)
         {     this.poNumber = pon;
         public String getPoNumber()
         {     return this.poNumber;
         public void setModel(String m)
         {     this.model = m;
         public void setQty(String quantity)
         {     this.qty = quantity;
         public void getNewRow()
         {     Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              this.setQty("");
              this.setModel("");          
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    <b><u>Question:</u></b>
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    <i><b>My stmts in method - getNewRow() are not working.</b></i>
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • Please help regarding PLSQL coding standards

    Hi,
    Can you please send any document for PL/SQL coding standards,
    Please help.. I did nt find any good resources on net regarding..
    Pleease help me if any pdf regarding are exitst to my mail id
    [email protected]
    Thanks and Regards
    asp

    I did nt find any good resources on net regarding..Here is a list from the net for you to start with (courtesy of many of the fellow posters here in these forums), and there will be plenty more. Just need to search correctly.
    http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
    http://www.orafaq.com/faqplsql.htm
    http://www.williamrobertson.pwp.blueyonder.co.uk/documents/plsqlcodingstandards.html
    http://www.orafaq.com/node/48
    http://apex.oracle.com/pls/otn/f?p=2853:4:11598658413321972351::NO::P4_QA_ID:3262
    http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
    Message was edited by:
    Kamal Kishore
    Message was edited by:
    Kamal Kishore

  • HT1338 How to get rid of Apple Support Community notices, my box is full I receive thousand a day and I really cannot handle it.  Please help, I cannot find the notification tad in my "preferences"  I have Mac OS X 10.7.5.  Please help it is urgent

    How to get rid of Apple Support Community notices?  my box is full as I receive thousand of messages a day.  I cannot handle it anymore, please it is urgent.  Help!  I have Mac OS X 10.7.5 and unable to find the "notification tab" in my "preferences"  I need a image if possible to better understand.  Thanks a lot.

    Thank you, but I just  tried everything you said, my apple id account (icloud) continues and still is receiving the email from ASC each second.  My i phone and macpro (i cloud account) is full of messages that I have difficult to erase at once.  I have to do it one by one which can take me the whole day.  How can i unsucribe from ASC, just get ride of my account, I mean cancel the ASC account, so I will not get any messages.  Please help.  Thanks.

  • My swf file doesn't sees flv format video, what can i do? Please help, it's urgent

    I made an video animation presentation in Flash CS6. I have a video part into this animation (flv format), but when i export the animation in swf, the video doesn't appear (i see only white screen. On my computer i can see it good, but from another computers it appears white screen.). I need to export the animation in video format, but i can't. Please help me, it's urgent for a project. Thank you!

    you can export the fla as a .mov.  file>export> export video. from here you can elect to open in Adobe Media Encoder and then choose your file extension type you want.
    if you cannot see the animation in the .swf my guess everything your doing is on a local computer and not on a site/server somewhere.

  • J2me bluetooth application please help it's urgent..

    Hi,
    i m new to this forum and j2me also.
    i tried to basic j2me bluetooth application which transfer file from pc to mobile.
    but at run time i got exception:
    java.lang.SecurityException: Application not authorized to access the restricted API
    also in bluetooth desktop application while calling searchService i got
    NullPointerException..
    please help me.
    i have already do permission for API in jad file...
    Thanks in advance...

    Hello Nikhil,
    In alv... field catalog consists one field called HOTSPOT...
    try like this...
    l_r_fieldcat-tabname        = 'G_T_ITAB'.
    l_r_fieldcat-fieldname      = 'LGORT'.
    l_r_fieldcat-ref_tabname    = 'MARD'.
    l_r_fieldcat-ref_fieldname  = 'LGORT'.
    l_r_fieldcat-col_pos        = 3.
    <b>l_r_fieldcat-hotspot        = 'X'.</b>
    append l_r_fieldcat to g_t_fieldcat.
    clear l_r_fieldcat.
    after that... at line selection... goto the VF03 using BDC.
    No need to double click when you are using HOTSPOT... Single click is enough.
    To get check box at the beginging of each and every record use the following code...
    Field having checkbox
      g_r_layout-box_fieldname = 'SEL'.
    here SEL is the field name in the internal table with char datape and length 1.
    To get ur own GUI Status... Go To Object list ( CTRL + SHIFT + F5 ). there click on GUI_STATUS. add one button for print priview and give one function code.
    in USER_COMMAND write code for function code... with function modules which are used to print forms.
    I'm give the remaing fields of fieldcatalog bellow. see last one... its HOTSPOT.
    ROW_POS
    COL_POS
    FIELDNAME
    TABNAME
    REF_FIELDNAME
    REF_TABNAME
    CURRENCY
    CFIELDNAME
    CTABNAME
    QUANTITY
    QFIELDNAME
    QTABNAME
    ROUNDFIELDNAME
    ROUNDTABNAME
    ROUND
    DECIMALSFIELDNAME
    DECIMALSTABNAME
    DECIMALS_OUT
    TEXT_FIELDNAME
    EXPONENT
    KEY
    ICON
    SYMBOL
    CHECKBOX
    JUST
    LZERO
    NO_SIGN
    NO_ZERO
    EDIT_MASK
    EMPHASIZE
    FIX_COLUMN
    DO_SUM
    NO_OUT
    TECH
    OUTPUTLEN
    OFFSET
    SELTEXT_L
    SELTEXT_M
    SELTEXT_S
    REPTEXT_DDIC
    DDICTXT
    ROLLNAME
    DATATYPE
    INTTYPE
    DDIC_OUTPUTLEN
    INTLEN
    LOWERCASE
    KEY_SEL
    NO_SUM
    SP_GROUP
    REPREP
    INPUT
    HOTSPOT
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.

  • Oracle Express Batch Manager-Please Help me out-urgent

    Dear all,
    I have created a Relational Access Administrator project and mapped an Express Datamodel with RDBMS lookup and fact tables and created a Maintenance Procedure Using "Express Database Maintenance" from "Relational Access Administrator". After that when I tried to run that "Procedure" using "Batch Manager", it creates a Command definition file "~5848371.cmd" and nothing is showing in the "Job Monitor" tab of "Batch Manager". At the same time since it could not run the procedure, no Express database have been created to the specified path.
    Please help me out, as I am in need for this very badly. I have gone through the document "Relational Access Administrator(User Guide)" from otn.oracle.com, but nowhere such type of problem have been addressed.
    Thanking you in advance,
    regards,
    Manoj Ghosh,
    Mail ID: [email protected]

    There is a tutorial on building a chat application (or applet) on the ibm site.
    http://www-105.ibm.com/developerworks/education.nsf/dw/java-onlinecourse-bytitle
    You need to register to use it, but it is free.
    Hope this helps
    Peter

  • Please help regarding Flowcontrol

    Greetings!
    I have a Cisco switch model WS-C3650-48TS-S and I configured in one of its interfaces flowcontrol receive on but when I check the interface using show interface I noticed that input flow-control off and output flow-control unsupported I wounder why the flow control not working even i configured it already?
    Interface configuration
    interface GigabitEthernet2/0/3
     switchport access vlan 111
     switchport mode access
     flowcontrol receive on
    show interface output
    GigabitEthernet2/0/3 is up, line protocol is up (connected) 
      Hardware is Gigabit Ethernet, address is f8c2.8857.340d (bia f8c2.8857.340d)
      Description: N5Strg iSCSI Port
      MTU 9198 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
         reliability 255/255, txload 11/255, rxload 8/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
      input flow-control is off, output flow-control is unsupported 
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input 00:00:06, output never, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 31653000 bits/sec, 3746 packets/sec
      5 minute output rate 44204000 bits/sec, 4417 packets/sec
         6668410425 packets input, 18568845018908 bytes, 0 no buffer
         Received 8271 broadcasts (0 multicasts)
         0 runts, 0 giants, 0 throttles 
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 watchdog, 0 multicast, 0 pause input
         0 input packets with dribble condition detected
         8040770794 packets output, 29759036783816 bytes, 0 underruns
         0 output errors, 0 collisions, 1 interface resets
         0 unknown protocol drops
         0 babbles, 0 late collision, 0 deferred
         0 lost carrier, 0 no carrier, 0 pause output
         0 output buffer failures, 0 output buffers swapped out
    Please help me if you know why it does not work

    Hi,
    Cisco Catalyst switches generally do not support output flow control - they never send PAUSE frames - so the message about the output flow control being unsupported is normal and expected.
    Regarding the input flow control, this feature has to be advertised by the link partner during linkup and autonegotiation phase. In other words, the device connected to this port must itself advertise the ability to use flow control. If the input flow control is claimed to be off then it may be caused by the device connected to this port that does not advertise this capability. You should check its NIC settings and optionally try to shutdown/unshutdown the port to go over the autonegotiation again.
    Please keep us informed!
    Best regards,
    Peter

  • Activation Problem..i Have Registered for the devolopers account and also paid 99 dollars. how do i open my iphone now? please help. this is urgent!

    this morning my iphone showed up a activation problem then it told me to go to devoloper.apple.com and register for the ios developer program.. it costed me 99 dollars. but i did it.. just a moment ago.. how do i access my iphone now? please help me this is real urgent.

    this in my problem too apple say : ur request is pending now and it did not activated yet !    ?  
    what should i do?

  • How to check for null values in bpel?? Please Help! very urgent!!!

    Hello Guys,
    I have a problem. I have an external webservice to which I have to post my request. My task is to create an Webservice and Service Assembly to which others would post request and get response. I have to create SA to deploy onto the bus.
    The problem is that there are optional elements in the request and response xsd's. In the Response sometimes certain feilds may come or they may not. for Example:- my response could contain a tag like this <firstName></firstName>
    I have to copy these feilds in my bpel process from one variable to another.(like in the mapper).
    My Question is , Is there any way in BPEL process or BPEL mapper where I could Check for null values in the request or response???
    Your inputs would be very helpful.
    Thanks
    Rajesh

    Thanks for replying man :)
    Ok I will be more clear.
    Here is a snippet of one of the xsd's that I am using.
    <xs:element name="returnUrl" nillable="false" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation>Partner specifies the return URL to which responses need to be sent to, in case of
    Async message model.
    </xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:anyURI">
                                  <xs:maxLength value="300"/>
                                  <xs:whiteSpace value="collapse"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
    This means that the return URL field can be there or it may not be there. But if it is there it cant be null because nillable=false. But the whole <returnURL> </returnURL> can be there or it may not be there because minOccurs=0.
    My requirement is , if returnURL is there in the response with a value, then in my BPEL mapper I should map it else I should not map it.
    Thats the issue.
    and Yes kiran, the node be non-existant.
    So can you please help me with this.
    Thanks
    Rajesh

  • Sales Api Is not working After Intializing(Please help it's urgent)

    Hi all,
    When i am executing an sales api to create lead in sql+ it s executing fine,but when i am executing the same api after intializing in SQL+ or in concurrent request,it is troughing an error like
    AS_SALES_MEMBER_PVT Using Fn....
    Please help Me and also look into the code...
    DECLARE
    q_sales_lead_id NUMBER (8);
    q_sales_lead_line_out_tb VARCHAR2 (300);
    q_sales_lead_cnt_out_tbl VARCHAR2 (500);
    q_return_status VARCHAR2 (10);
    q_msg_count NUMBER (10);
    q_msg_data VARCHAR2 (800);
    a_return_status VARCHAR2 (10);
    a_msg_count NUMBER (10);
    a_msg_data VARCHAR2 (800);
    q_noteid NUMBER (4);
    x_sales_lead_line_out_tbl as_sales_leads_pub.sales_lead_line_out_tbl_type;
    x_sales_lead_cnt_out_tbl as_sales_leads_pub.sales_lead_cnt_out_tbl_type;
    l_sales_lead_rec as_sales_leads_pub.sales_lead_rec_type;
    l_sales_lead_line_tb1 as_sales_leads_pub.sales_lead_line_tbl_type;
    v_party_id NUMBER (10);
    v_resource_id NUMBER (10);
    v_group_id NUMBER (10);
    v_person_id NUMBER (10);
    v_org_id NUMBER (10);
    v_customer_id NUMBER (10);
    v_primary_application VARCHAR2 (150);
    v_secondary_application VARCHAR2 (150);
    v_lead_provider_type VARCHAR2 (150);
    v_nomenclature_final VARCHAR2 (150);
    v_segment VARCHAR2 (150);
    v_nomenclature VARCHAR2 (150);
    v_nomenclature_1 VARCHAR2 (150);
    v_segment_1 VARCHAR2 (150);
    v_fleet_mix VARCHAR2 (150);
    v_category_set_id NUMBER (10);
    v_category_id NUMBER (10);
    e_msg VARCHAR2 (500);
    v_party_name VARCHAR2(150);
    out_param VARCHAR2(150);
    CURSOR c1 IS
    SELECT a.*, ROWID
    FROM al_vendor_sms_crmlead_in a
    WHERE a.msg_flag = 'N' AND a.customer_code IS NOT NULL
    AND a.models IS NOT NULL
    AND a.fleet_mix IS NOT NULL
    AND a.segments IS NOT NULL
    AND a.lead_provider IS NOT NULL
    AND a.secondary_app IS NOT NULL
    AND a.cp_mobile_no IS NOT NULL
    AND a.id='L';
    BEGIN
    For i in c1 LOOP
    BEGIN
    out_param :='phone validation';
    SELECT ppf.party_id
    INTO v_party_id
    FROM per_phones pp, per_all_people_f ppf
    WHERE ppf.person_id = pp.parent_id
    AND pp.phone_type = 'M'
    AND pp.phone_number = i.cp_mobile_no
                   and rownum<=1;
    out_param:='Resource_invalid';
    SELECT jtf.resource_id, jtm.GROUP_ID, jtf.source_business_grp_id,
    jtf.source_id
    INTO v_resource_id, v_group_id, v_org_id,
    v_person_id
    FROM apps.jtf_rs_resource_extns jtf, apps.jtf_rs_group_members jtm
    WHERE jtf.resource_id = jtm.resource_id
    AND jtf.end_date_active IS NULL
    AND jtm.delete_flag = 'N'
    AND jtf.user_name NOT LIKE 'ALM%'
    --AND jtf.attribute5='Sales'
    AND jtf.person_party_id = v_party_id
    AND ROWNUM <= 1;
    out_param:='Party_invalid';
    SELECT party_id,party_name
    INTO v_customer_id,v_party_name
    FROM apps.hz_parties
    WHERE status = 'A' AND party_number = i.customer_code;
    out_param:='Sec_prim_application_invalid';
    SELECT parent_flex_value_low, flex_value
    INTO v_primary_application, v_secondary_application
    FROM apps.fnd_flex_values_vl
    WHERE parent_flex_value_low IN (
    SELECT flex_value
    FROM apps.fnd_flex_values_vl
    WHERE flex_value_set_id = 1009667
    AND enabled_flag = 'Y')
    AND enabled_flag = 'Y'
    AND TO_NUMBER (TRUNC (SUBSTR (attribute1, 1, 2))) =
    i.secondary_app ;
    out_param:='Segment_map_invalid';
    SELECT Upper(REPLACE (regexp_replace (i.models, '(\s*[[:punct:]])'), ' '))
    INTO v_nomenclature
    FROM DUAL;
    SELECT flex_value
    INTO v_nomenclature_final
    FROM apps.fnd_flex_values_vl
    WHERE flex_value_set_id = 1009798
    AND enabled_flag = 'Y'
    AND end_date_active IS NULL
    AND REPLACE (regexp_replace (flex_value, '(\s*[[:punct:]])'), ' ') =
    v_nomenclature
    AND ROWNUM <= 1;
    SELECT flex_value
    INTO v_segment
    FROM apps.fnd_flex_values_vl
    WHERE flex_value_set_id = 1009632
    AND enabled_flag = 'Y'
    AND end_date_active IS NULL
    AND TO_NUMBER (TRUNC (SUBSTR (flex_value, 1, 2))) = i.SEGMENTS;
    SELECT ffvh.flex_value, ffv.flex_value
    INTO v_nomenclature_1, v_segment_1
    FROM apps.fnd_flex_values_vl ffvh, apps.fnd_flex_values_vl ffv
    WHERE ffv.flex_value = ffvh.parent_flex_value_low
    AND ffvh.enabled_flag = 'Y'
    AND ffv.flex_value_set_id = 1009632
    AND ffv.enabled_flag = 'Y'
    AND ffvh.flex_value_set_id = 1009798
    AND ffvh.parent_flex_value_low = v_segment
    AND ffvh.flex_value = v_nomenclature_final;
    out_param:='Lead_provider_invalid';
    SELECT flex_value
    INTO v_lead_provider_type
    FROM apps.fnd_flex_values_vl
    WHERE flex_value_set_id = 1009718
    AND end_date_active IS NULL
    AND TO_NUMBER (TRUNC (SUBSTR (flex_value, 1, 2))) =
    i.lead_provider;
    out_param:='vehicle_res_invalid';
    SELECT lookup_code
    INTO v_fleet_mix
    FROM apps.fnd_lookup_values_vl
    WHERE lookup_type = 'VEHICLE_RESPONSE_CODE'
    AND enabled_flag = 'Y'
    AND TO_NUMBER (TRUNC (SUBSTR (description, 1, 2))) = i.fleet_mix;
    out_param:='Category_invalid';
    SELECT mic.category_set_id, mic.category_id
    INTO v_category_set_id, v_category_id
    FROM apps.mtl_item_categories mic, apps.mtl_categories_tl mc
    WHERE mic.category_id = mc.category_id
    AND organization_id = 106
    AND description = v_nomenclature_final
    AND ROWNUM <= 1;
    out_param:='api-Error';
    l_sales_lead_rec.customer_id := v_customer_id;
    l_sales_lead_rec.status_code := 'NEW';
    l_sales_lead_rec.attribute15 := v_segment_1;
    l_sales_lead_rec.attribute12:=To_Char( i.expected_closedate,'YYYY/MM/DD HH24:MI:SS');
    l_sales_lead_rec.attribute10 := v_lead_provider_type;
    l_sales_lead_rec.attribute9 := v_secondary_application;
    l_sales_lead_rec.attribute8 := v_primary_application;
    l_sales_lead_rec.assign_to_salesforce_id := v_resource_id;
    l_sales_lead_rec.assign_sales_group_id := v_group_id;
    l_sales_lead_rec.assign_to_person_id := v_person_id;
    l_sales_lead_rec.vehicle_response_code := v_fleet_mix;
    l_sales_lead_rec.description:=v_party_name||' '||v_nomenclature;
    l_sales_lead_line_tb1 (1).category_id := v_category_id;
    l_sales_lead_line_tb1 (1).category_set_id := v_category_set_id;
    l_sales_lead_line_tb1 (1).organization_id := v_org_id;
    l_sales_lead_line_tb1 (1).quantity:=1;
    as_sales_leads_pub.create_sales_lead
    (p_api_version_number => 2.0,
    p_init_msg_list => fnd_api.g_false,
    p_commit => fnd_api.g_true,
    p_validation_level => fnd_api.g_valid_level_full,
    p_check_access_flag => 'Y',
    p_admin_flag => 'Y',
    p_admin_group_id => v_group_id,
    p_identity_salesforce_id => v_resource_id,
    p_sales_lead_profile_tbl => as_utility_pub.g_miss_profile_tbl,
    p_sales_lead_rec => l_sales_lead_rec,
    p_sales_lead_line_tbl => l_sales_lead_line_tb1,
    p_sales_lead_contact_tbl => as_sales_leads_pub.g_miss_sales_lead_contact_tbl,
    x_sales_lead_id => q_sales_lead_id,
    x_sales_lead_line_out_tbl => x_sales_lead_line_out_tbl,
    x_sales_lead_cnt_out_tbl => x_sales_lead_cnt_out_tbl,
    x_return_status => q_return_status,
    x_msg_count => q_msg_count,
    x_msg_data => q_msg_data);
    as_sales_leads_pub.Build_Lead_Sales_Team (
    P_Api_Version_Number =>2.0,
    P_Init_Msg_List=>FND_API.G_TRUE,
    p_Commit=>FND_API.G_TRUE,
    p_Validation_Level=> FND_API.G_VALID_LEVEL_FULL,
    P_Admin_Group_Id =>v_group_id,
    P_identity_salesforce_id=>v_resource_id,
    P_salesgroup_id=> v_group_id,
    P_Sales_Lead_Id=>q_sales_lead_id,
    X_Return_Status=>q_return_status,
    X_Msg_Count=>a_msg_count,
    X_Msg_Data =>a_msg_data);
    IF q_return_status = 'S'
    THEN
    UPDATE al_vendor_sms_crmlead_in
    SET conv_status = 'S'
    WHERE unique_identifier = i.unique_identifier AND ROWID = i.ROWID;
    ELSE
    UPDATE al_vendor_sms_crmlead_in
    SET conv_status = 'E' WHERE unique_identifier = i.unique_identifier AND ROWID = i.ROWID;
    END IF;
    EXCEPTION
    WHEN No_Data_Found THEN
    UPDATE al_vendor_sms_crmlead_in a
    SET a.conv_status = 'ERROR',error_description=out_param
    WHERE unique_identifier = i.unique_identifier AND ROWID = i.ROWID;
    COMMIT;
    END;
    UPDATE al_vendor_sms_crmlead_in SET msg_flag='Y' WHERE unique_identifier = i.unique_identifier AND ROWID = i.ROWID;
    END LOOP;
    END;

    Please post this question in the CRM On Demand Integration Development forum.

Maybe you are looking for

  • Server will not boot after update !! Help needed fast !!

    I have a new (Aug 2005) XServe G5, running 4.3. Active Directory integrated, stores home folders (AFP), manages preferences and 5 print queues for 55 Mac OS X.4.3 clients and 200 users. It downloaded the 4.4 update, unchecked the OS 4.4 update (I thi

  • How to create dynamic Textbox in JSP

    I created dynamic Textboxes using javascript in JSP.But i want to give every textbox a unique name..But I dont know how to give unique name to all the textbox which are created dynamically.....Can u help me Please............. <script code="text/java

  • BOM and routing selection during production order creation

    I am having a material which is having only one BOM and one routing. Now for this material in the material master in the selection method indicator i have put as 3 as selection only by production version. But i have not maintained any production vers

  • Mp4 Videos in ios 5 do not start from last stop

    Hi, Since I updated my iphone 4 to ios 5 (and 5.0.1) my movies / mp4 videos in the video app will always start from the beginning even though I set "Start from last stopp" (sorry, something like that in german) in the settings. I have some videos on

  • I get an error when I try to trim my string during run-time??

    I am able to get the string inputted in without the trim.. but when i add the trim, the program screws up during run-time.. i have this in my code... input = in.readLine(); when i put the following afterwards.. it doesn't work: input = input.trim();