How to create Confirmation Item QUANTITY during Runtime

Hi Experts,
I am trying to create Confirmation ITEM with QUANTITY during runtime.
I have successfully created item using CRM_ORDERADM_I_MAINTAIN_OW however it doesnot have scheduling_i structure which hold QUANTITY. I tried with CRM_ORDER_MAINTAIN_MULTI_OW. getting following error, I tried with CRM_SCHEDLIN_I_READ_OW it creating quantity on CRM Confirmation screen.
Can you pls tell me how to get quantity. 
Thanks
Anee
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X)
ls_fund_h         TYPE  crmt_fund_h_com,
        ls_cla_h          TYPE  crmt_cla_h_com,
        ls_lawref_h       TYPE  crmt_lawref_h_com,
        lt_lawref_h       TYPE  crmt_lawref_h_comt,
        ls_orderadm_i     TYPE  crmt_orderadm_i_com,
        lt_orderadm_h     TYPE  crmt_orderadm_h_comt,
        lt_chngproc_i     TYPE  crmt_chngproc_i_comt,
        ls_chngproc_i     TYPE  crmt_chngproc_i_com.
  DATA:
        ls_entry            TYPE  crmt_guid_handle,
        lv_dummy            TYPE  crmt_msgtext,
        lv_vona_kind_copy   TYPE  crmt_boolean,
        lv_count            TYPE  i,
        ls_msg_handle       TYPE  balmsghndl,
        ls_exception        TYPE  crmt_exception_logical_ke
        lv_subrc            TYPE  sy-subrc.
  FIELD-SYMBOLS:
        <ls_order_item>   TYPE  crmt_order_items.
* check correct call
  ADD 1 TO gv_recursive_call.
  ADD 1 TO gv_maintain_active.
  CALL FUNCTION 'CRM_ORDER_CHECK_RECURSIVE_OW'
    EXCEPTIONS
      recursive_call              = 1
      call_without_order_maintain = 2
      OTHERS                      = 0.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    EXIT.
  ENDIF.

Did you solve the problem?

Similar Messages

  • How to create a movie clip during runtime?

    I'm learning basic shooter games and my goal is to have a small circle movie clip (would it work as a movie clip?) spawn when the mouse button is pressed. I know how to add the code for the button being pressed, but I do not know how to create the object on demand. Can you please help me with this?

    For AS2, you right click the movieclip symbol in the library and select the Linkage... option.  In the panel that appears you select the first option (Export for Actionscript) and another is automatically selected.  Then you assign an Identifier for it in the field at the top.  To add that movieclip to the stage you use the attachMovie() method... for example...
    this.attachMovie("linkageIdentifier", "instanceName", this.getNextHighestDepth());
    In AS3 it is somewhat similar as far as assigning an Identifier, except you assign a Class name instead, and then add a new item to the stage as a new instance of the class... 
    var instanceName:ClassIdentifier = new ClassIdentifier();

  • How to update cgicmd.dat file during runtime?

    I'd like to know how do update cgicmd.dat file during runtime. For example, I run a report one.jsp as
    http://<machine>:<port>/reports/rwservlet?one.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=htmlcss
    within this report there is a hyperlink to open another report named two.jsp.
    before creating this hyperlink, I'd like to update cgicmd.dat file with passed in userID, pwd, and connection, so two.jsp can use this key for userinfo
    so I can create hyperlink as follows
    srw.set_hyperlink('/reports/rwservlet?report=two.jsp'||
    '&cmdkey=userinfo&DESTYPE=cache&mode=bitmap&desformat=htmlcss');
    Thanks

    To my knowledge the cgicmd.dat is only read when the OC4J starts, so you would have to come up with another solution. Using Single-Sign-On (SSO) is quite a good idea, and it's there for cases like this.
    Regards,
    Martin Malmstrom

  • How to create database item for fast formula?

    Hi,
    Is there any document for how to create database item for fast formula? I could not find in Metalink or this forum. Thanks.
    Andy

    Oracle ship many pre-delivered Database Items plus they're created automatically when you create Input Values (etc).
    There's often something already there for you. If there's not, you usually create Fast Formula functions to retrieve other data. You don't create your own custom DBIs; Oracle don't deliver APIs for that.

  • How to create Shuttle Item in APEX

    Hi,
    could you please anyone let me know the steps of how to create shuttle item in APEX?
    Thanks for your help
    Thanks
    Sri

    Hi Jitendra,
    Thanks for replying.
    my query like this.
    select * from table1,table2
    where
    table1.value not in 'CABINET' ---- here i need to create shuttle
    and table2.name like 'B%' --- this is just text box
    table3. value is coming from LOV.
    could you please let me know how to create value as shuttle, in shuttle wht are the changes do i need to make changes?
    Thanks
    Sri

  • How can i change/create F1 doku text during runtime

    Hi everybody,
    I have a problem.
    During runtime the user should be able to create a documentation. This documentation must be stored in the F1 help of a data type.
    It's easy to get the created help text out of the F1 help.
    But is there any possibility to set the help text of a data type during runtime without calling and displaying the document maintenance initial screen?
    Can anybody help me?
    Thanks & Regards

    Hi Max,
    thank you for your answer. But I think I don't realy understand.
    The documentation should be created for a pattern which is created by the user. I just schould be stored in the F1 help of a data type.
    So there is no field on the screen for which i can use this event.
    Is there a function or something like this i can call to open the document maintenance starting with the "change" screen?
    Thanks & Regards,
    Christian

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • How to create a text object at runtime?

    Hi,
    I am using crystal reports for visual studio 2010 and using c# to programming.
    I need to create  a text object in a specific section like section 2. and also I need to control the text object's position and text.
    I tried to move a object like:
    reportDocument1.ReportDefinition.Sections[j].ReportObjects<i>.Left = 0x8760;
    but object's position doesn't change at all.
    How can I do these (create a text object and change a object postion)?
    Thanks

    Hi Don,
    Thank you.
    I have downloaded a RAS ( report application Server ) sample.
    The sample uses the Business Objects Enterprise XI release 2. I am using win 7 and crystal reports for vs2010. Can I use this version of crystal reports to create  a text object at runtime? If not, what is the lowest version I have to purchase to achieve what I want?
    Basicly I need following capabilities at runtime:
    1) craete text objects, line objects, image objects.
    2) change text object, line object and image object positions, sizes, values of text object. If can I like to be able to change font as well.
    3) supress objects, sections. 
    4) change section's height

  • How to determine the target system during runtime of a Generic DS?

    Hi Experts, good afternoon.
    I am coding a Generic Extractor using Function Module. I have to select the field TIMESTAMP on table ROOSPRMSC. To do so, I need the value of RLOGSYS that is the BW system that is calling the Extractor.
    Do anybody knows how to determine via ABAP the RLOGSYS (Remote Logical System) during the runtime of the Generic DataSource Function Module?
    The table ROOSPRMSC keep the TIMESTAMPs values of the last delta upload for each DataSource and for each BW target system. As I have 2 BW's loading data from the same SAP ECC system, I need to know, during runtime of my Generic DataSource, the actual system that is requesting the delta. That's the reason why I need to know the BW's logical system name that is "runnig" the delta InfoPackage.
    Plese, help!!!
    Thanks in advance!
    Leandro Vani

    Leandro,
    The calling program of your FM should have a local variable I_RLOGSYS which is populated with the BW server ID.
    If you don't know how to access a variable in a program that is in call stack using field symbols, search SDN.
    I haven't tested this, so you may have to explore a little.
    Good luck.

  • How to set borderColor from css during runtime

    Hi,
             I need to set the border color of a selected tab during runtime from css. Is it possible. Please help i am struggling with this for past two days.
    regards,
    Jayagopal.

    Just create a selected CSS style, and update the styleName of the tab when it is selected.

  • How to create dynamic strcture and accepting runtime value in work area

    Hi,
    I am using RFC_READ_TABLE for  joining more than table  and written select query but  into clause work area value is passed but it is short dump is displaying with too few many fields  in into clause .work area WA need some casting type conversion which accepts the some run time value  and should have some structure  for it.how to create dynamic structure?

    hi
    good
    go through this and use in your report accordingly.
    If you are trying to read some information from SAP and you can't find the right BAPI then RFC_READ_TABLE can do the job for you.
    RFC_READ_TABLE is powerful RFC it gives you the access to all tables and views in SAP. I basically used RFC_READ_TABLE for Material Master Search application on the Intranet.
    Now you may say there are lots of BAPI for this functionality. You are right but I had to work around the BAPI to get Prices (Moving Average Price) and it just did not work very well. Because of the nature of the application I had to use RFC_READ_TABLE because then I can use powerful SQL expression for searching. RFC_READ_TABLE give you the ability to code the where clause which is quite enough.
    I have included part of the code use in asp page to read ENT1027 for Mgroup and M description & number but without object creation. The other part of the code reads MBEW for price & quantity.
    Code
    lt;%
    '#######################Diming the Structures
    Call BAPIRFC.DimAs("Rfc_Read_Table", "FIELDS", MaterialSelection_RS)
    Call BAPIRFC.DimAs("Rfc_Read_Table", "OPTIONS", Selection_RS)
    '########################Search Type########################
    ' C contanis
    ' S Start with
    ' E Ends with
    if searchtype = "C" then
    FormatedSearch_Keyword = "%" & Search_Keyword & "%"
    elseif searchtype = "S" then
    FormatedSearch_Keyword = Search_Keyword & "%"
    else searchtype = "E" then
    FormatedSearch_Keyword = "%" & Search_Keyword
    end if
    '################# Flaged for deletion Materials #####################
    if showdeleted = "No"  then
    Selection_RS.AddNew Array("TEXT"),Array("LVORM <> 'X' AND")
    end if
    '############## users can search three material group ################
    '############## GROUPS: OFFICESUP TECOMHARD TECOMSOFT ###############
    '##USER STILL CAN NAROW THEIR SEARCH BY SELECTING ON OF THREE#########
    if MGroup = "ALL"  then
    Selection_RS.AddNew Array("TEXT"),Array("MATKL IN ('OFFICESUP','TECOMHARD','TECOMSOFT')")
    else
    Selection_RS.AddNew Array("TEXT"),Array("MATKL = '"& MGroup &"' and ")
    end if
    '#######################ADDING SEARCH KEYWORD TO STRUCTURE##############
    if not  Search_Keyword = "" then
    Selection_RS.AddNew Array("TEXT"),Array(" MAKTG LIKE '" & FormatedSearch_Keyword &  "'")
    end if
    Selection_RS.Update
    '#######################ADD RETURNED FIELDS#########################
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MATNR","000000","000000" ,"","")
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MATKL","000000","000000" ,"","")
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MAKTG","000000","000000" ,"","")
    MaterialSelection_RS.Update
    call BAPIRFC.Rfc_Read_Table("ENT1027", Material_RS, MaterialSelection_RS, Selection_RS, "~", "", "0", "0")
    If Err.Number > 0 then
                   Response.Write "Error:" & "<BR>"
                   Response.Write "   Err.number...... " & Err.Number & "<BR>"
                   Response.Write "   Err.Description. " & Err.Description & "<BR>"
    end if
    '###########LOOP THROUGH RECORDSET
    if not Material_RS is nothing then
    do while not Material_RS.eof
    loop
    end if
    %>
    thanks
    mrutyun^

  • [Seeking help] How to create a bean with annotations @ runtime?

    I would like 2 create a bean, @ runtime, as below:
    public class A {
      @MyAnnotation(id = "ID")
      private String id = "";
      public String getId() { ... }
      public void setId(String id) { ... }
    }Can anyone tell me how 2 achieve this? I know how 2 create a bean dynamically, however with annotations it is a bit tricky ..
    Cheers!
    Edited by: olove66 on Aug 7, 2009 2:00 AM

    @_@ I guess anyone interested in this topic can turn 2 ASM. Maybe BCEL has not got anything 2 support annotation creation yet.

  • How does one empty an array during runtime with a front panel switch

    I can 'empty array' from the front panel during runtime but I want to empty all arrays (20) from my vi with a front panel switch (see screenshot). I have used replace array subset and reshape array with no success. Any help would be appreciated
    Attachments:
    TempScan_screenshot.JPG ‏26 KB

    Hmm... You can empty an array by reshaping it or by assigning a constant empty array - using local variables or properies of the original control (see attached example... hmmm... not the best one ). May be you can attach a part of your code to see what is better to do in the given case.
    Attachments:
    reset_table.vi ‏20 KB

  • How to create an item with date type mm/yyyy (no day)

    Hello,
    Is it possible to create an item with date type mm/yyyy (no day)? I want the pop-up date picker to just show month and year.
    Thanks,
    Jen

    Hi,
    you cannot pop-up date picker to just show month and year, but you can set your item format as MM-YYYY
    You can check this APEX_ITEM.DATE_POPUP2 at : http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDJHBCG (if using apex 4.1) else http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDFDDEI
    Edited by: Sergio_doudou on 2012-04-13 14:26

  • How to create an item Phone Number of US Format

    Hi,
    Need to create an item in a page Phone Number.
    The Item should accept only US Phone Number Format.
    Need Suggestions.
    Regards,
    Krishna

    Hi Krishna,
    You can make the US Phone format validation in the Page controller by making a validation function and call this validation function on the submit button or form submission. u can use the following function in the page controller-
    public void validatePhone(String sPhoneNumber )
    Pattern pattern = Pattern.compile("\\d{3}-\\d{3}-\\d{4}");
    Matcher matcher = pattern.matcher(sPhoneNumber);
    if (matcher.matches()) {
    throw new OAException("Phone Number Valid", OAException.INFORMATION);
    else
    throw new OAException("Phone Number must be in the form XXX-XXX-XXXX", OAException.INFORMATION);
    and call the validation function in processFormRequest function
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAMessageTextInputBean msgInBean =(OAMessageTextInputBean)webBean.findIndexedChildRecursive("<id of the element>");
    if ((pageContext.getParameter("<submit button>") != null))
    String val =(String)msgInBean.getValue(pageContext);
    validatePhone(val);
    u also have the following imports in the controller -
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    I hope this will help u.
    Regards
    Renu

Maybe you are looking for

  • Reader 9.0 on Firefox

    I'm using Firefox 3.0.5 and I've downloaded Reader 9.0, but when I try to open any kind of PDF file from the web, I get the following error: C:\DOCUME~1\owner\LOCALS~1\Temp\PdfServlet-5.pdf could not be opened, because the associated helper applicati

  • Tables where Charateristics related to DIR are Stored

    Hi Friends I have one Query. You assign Class to a Document type in SPRO.To This Class we assign some Charateristics. When we Create a DIR , we assign charaterictics value in Additional Data Tab Page.My question is where these values specific to DIR

  • Properties store problem!!

    Why do I get get a NullPointerException here?? public static void storeSettings() { try { File file = new File( System.getProperty("user.home"), "app.properties"); FileOutputStream fos = new FileOutputStream(file); properties.store(fos, "Application

  • Purchase Order price not pulled through from Purchase Requisition.

    Hi: The Valuation Price on my Purchase Requisition does not pull through to the Purchase Order. All the settings on "OMET" and my user profile seems to be set but still I get an error - No conditions determined (no authorization for input) when I ent

  • MSO over MSO

    Hello: Using the new functionality on R18 about placing a different interactivity (video, audio, etc) in any stage of the MSO, is it possible to include another MSO in an specific object of a parent MSO? For example, I have a catalog of clothing made