Import parameter formatting for BAPI

Hi
I am using BAPI_SALESORDER_GETLIST to get the sales orders.
When i hardcode the values as follows, it works
importParams.put("CUSTOMER_NUMBER", "0000001000");
importParams.put("SALES_ORGANIZATION","1000");
Now i have a screen to capture the input and passes it to the importParams. But no result comes out.
JSP Code:
<hbj:textView id="c1"  text= "customer" />
<hbj:inputField id="customer" type="string" maxlength="100" />
<hbj:textView id="c2"  text= "sales Organization" />
<hbj:inputField id="sales" type="string" maxlength="100" />
       <hbj:button id="oKbutton"
               text="OK"
               onClick="myClick"
               design="EMPHASIZED"
               width="100"
               >
               <% myFormId.setDefaultButton(oKbutton); %>
       </hbj:button>
OnClick Code:
          public void onMyClick(Event event) throws PageException {
               Component c = this.getComponentByName("customer");
               if ( c instanceof InputField )
                 customerNo = ((InputField) c).getString().toString();
               Component d = this.getComponentByName("sales");
               if ( d instanceof InputField )
                    salesOrg = ((InputField) d).getString().toString();
Assignment Code:
I have declared them as Strings at the Top
String customerNo = "";
String salesOrg = "";
importParams.put("CUSTOMER_NUMBER", customerNo.trim() );
                    importParams.put("SALES_ORGANIZATION", salesOrg.trim());
Problem:
Now even if i type "0000001000" and "1000" as values in the input field, there is no result.
I debugged the onClick event and confirmed that the values are being passed from the first page properly as STRINGS. Both these paramters are strings. So i maintained the leading ZEROS.
Any Help would be appreciated.
Murali.

Hi
Can anyone Help me out.

Similar Messages

  • Import parameter value for FM RH_OM_ATTRIBUTES_READ

    Hello SRM Gurus
    What is the import parameters values for the function module RH_OM_ATTRIBUTES_READ to read Org.Structure parameter values in SRM 7.0 system?
    Is below parameter value is correct?
    PLVAR = u201801u2019
    OTYPE =u2019Ou2019
    OBJID = userid
    SCENARIO = u2018BBPu2019
    SELDATE = SY-datum
    I am not able to  read any data.
    Kindly share your experience.
    Thanks.
    Preethi.

    Hi
    Under Object Type(OTYPE) you are entering as "O" - means Org Unit
    So you need  to enter Org Unit under Object ID (OBJID) and not the user Id
    Hope this is clear to you now

  • Alternative UI Output formats for BAPI table

    Hi Experts,
    Can I display the output of a BAPI table in any other format apart from a table.
    Regards
    Abdullah

    Abdullah,
    In web dynpro you cannot have tables with scrollbar. A workaround for that may be a use of ScrollContainer UI element with fixed height and display all table rows via setting visibleRowsCount=-1.but problem here is , table headers will be scrolled as well. So it is better not to have them like that.
    I would suggest take use of existing table UI element and dont alter its functionality.
    Regarding incorporating the application using web dynpro I guess that you must be knowing(not sure but think that you need to get rid of COM DCOM).
    hope it helps
    regards,

  • Table as Input parameter for BAPI in Webdynpro Application

    I am creating webdynpro JAVA application to create RFQ, for which ABAP guy written a Custom BAPI called Z_BAPI_INQUIRY_CREATE. I tested this BAPI  in SAPGUI it is working fine. From my webdynpro application when I passes header and item parameter, my header getting inserted but my item data is not. It is giving me error like "Table input parameter not found". I am passing table to this bapi. When I tried my code to standard BAPI's (NOT CUSTOM), I am able to insert both HEADER and ITEM data.
    In above scenario I have few questions,
    1. Is there anything extra we have to do with custom BAPI's? (my BAPIs are in BOR).
    2. What is the datatype in webdynpro parallal to table parameter?
    3. is there any tutorial available for table parameter? (except FLIGHT examle).
    Thanks and regards,
    Nitin

    Hi Vijayakhanna Raman,
    Thanks much for your reply.
    Yes I did the same as you mentioned, but still I am getting an error "Table parameter not avaliable is empty".
    I am not getting were is the bug. And this is happening only with ZBapi's not with Standard Bapi's.
    I am really stucted becouse of this, answer will really get all 10 points.
    Here is my code,
         1. First create an instance for bapi and bind the instance to the bapi node.
         Z_Bapi_Inquiry_Change_Input input = new Z_Bapi_Inquiry_Change_Input();
         Zbapirfqitem item =new Zbapirfqitem();          
         wdContext.nodeBapi_RFQ_OnHold_Update_Input().bind(input);
         2. Then if u have the import parameter u have to set them by using
         input.setRfq_Number("6");
         input.setCreated_By("NLNS0000");
         //wdContext.currentBapi_RFQ_OnHold_Update_InputElement().modelObject().setRfq_Number("6");
         //wdContext.currentBapi_RFQ_OnHold_Update_InputElement().modelObject().setCreated_By("NLNS0000");
         3. If the bapi has a table parameters then the structure for the table parameters will also be imported In the model class.
    DONE!
         4. Set the table parameters by creating the instance for that structure and using this instance set it.
                             item.setUpdateflag("I");
                             item.setItm_Number("000030");
                             item.setMaterial("MAT-NITIN");
                             item.setMatl_Desc("Inserted by Nitin");
                             item.setQuantity(new BigDecimal(4));
                             item.setBase_Uom("PCE");
                             item.setReq_Qty(new BigDecimal(4));
                             item.setBase_Uom1("PCE");
                             item.setList_Price(new BigDecimal(3));
                             item.setList_Curr("");
                             item.setReq_Price(new BigDecimal(4));
                             item.setCurrency("EUR");
                             item.setIndirect_Price(new BigDecimal(4));
                             item.setCurrency_2("EUR");
                             item.setFinal_Price(new BigDecimal(4));
                             item.setCurrency_3("EUR");
                             item.setText_Line("");
                             item.setReq_Date_H(new Date(12-05-06));
                             item.setDirect_Dis(new BigDecimal(4));
                             item.setIndirect_Dis(new BigDecimal(4));
                             item.setFinal_Dis(new BigDecimal(4));
                             item.setProfit_Margin1(new BigDecimal(4));
                             item.setProfit_Margin2(new BigDecimal(4));
                             item.setBrand1("");
                             item.setModel1("");
                             item.setVal_Loccurr1(new BigDecimal(4));
                             item.setCurrency1("");
                             item.setBrand2("");
                             item.setModel2("");
                             item.setVal_Loccurr2(new BigDecimal(4));
                             item.setCurrency2("");
              5. Then add the structure instance to the bapi instance.
         input.addItem(item);
         6. Then Execute the bapi after setting the import parameters.
              //wdThis.wdGetContext().currentBapi_RFQ_OnHold_Update_InputElement().modelObject().execute();
              input.execute();
    Message was edited by: Nitin Kamble

  • How to use the field checkbox for bapi parameter ?

    Dear All,
    Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
    Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
    when 'C'.
    call function 'BAPI_SALESORDER_CREATEFROMDAT2'
    exporting
    order_header_in = gs_order_hd
    importing
    salesdocument = gv_vbeln
    tables
    return = gt_return
    order_items_in = gt_items
    order_partners = gt_partners
    order_schedules_in = gt_schedules
    order_conditions_in = gt_conditions.
    when others.
    call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
    exporting
    sales_header_in = gs_order_hd1
    importing
    salesdocument_ex = gv_vbeln
    tables
    return = gt_return
    sales_items_in = gt_item1
    sales_partners = gt_part1
    sales_schedules_in = gt_sch1
    sales_conditions_in = gt_cond1.
    endcase.

    If you want to change a value, you need to pass the value in the 'order_items_in = gt_items' structure.
    You also need to add an 'X' in the 'order_items_inx = gt_itemsx'  structure for the same field.
    If you do not pass the 'X' then the value will not be updated...
    It looks like you are not passing the required '...x' structures.
    For more info see the documentation:
    Notes                                                                               
    1.  Mandatory entries:                                                                               
    ORDER_HEADER_IN : DOC_TYPE     Sales document type                      
                        SALES_ORG    Sales organization                       
                        DISTR_CHAN   Distribution channel                     
                        DIVISION     Division                                                                               
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party           
                        PARTN_NUMB   Customer number                                                                               
    ORDER_ITEMS_IN..: MATERIAL     Material number                                                                               
    2.  Ship-to party:                                                                               
    If no ship-to party is entered, use the following: Ship-to party =  
          sold-to party.                                                                               
    3.  Commit control:                                                     
          The BAPI does not have a database commit. This means that the       
          relevant application must leave the commit, in order that can be    
          carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is 
          available for this.                                                                               
    4.  German key words:                                                   
          The following key words must be entered in German, independantly of 
          the logon language:                                                 
          DOC_TYPE     Sales document type, for example: TA for standard order
          PARTN_ROLE   Partner role, for example: WE for ship-to party                                                                               
    Further information                                                                               
    You can find further information in the OSS. The note 93091 contains    
      general information on the BAPIs in SD.

  • How to use the checkbox for bapi parameter ?

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

  • Changing Import Parameter for GetList

    Hi All,
    i have a getlist bapi which has a import parameter. I have mapped a constant in the BEA (Backend adapter).
    if i want to change the import parameter in the BEA i have to activate the BEAagain.
    is there a way to change the import parameter without activating the BEA again?
    we are using Mobile 7.1 SP08 Server.
    Thanks and Regards,
    Joseph Beevin.

    Hi,
    the default value is called default value because you define it once and then it stays forever. So based on that default value MI7.1 generates some entries in tables, code,... If you change this entry in the SDOE_WB, even it is the Default value and not the mapping - it is obvious that you need to regenerate this Backend adapter - cause you press the save button to save the backend adapter and so it is changed and this change needs to be reflected in the code.
    By the way: cause you only change the backend adapter there is no need to reimport the datamodel into your NDWI.
    And keep in mind: Changing the Default value can happen at development time but should not happen at runtime, cause then you have a design issue and in Production you should not be allowed to change any bit of the Data Model other then by transport!
    So the first question is: why do you really want to change the default value - it seems to be a big issue - and perhaops we need to find another solution for you.
    Regards,
    Oliver

  • BAPI BAPI_GOODSMVT_CREATE import parameter problem

    Hi All,
    I am using BAPI BAPI_GOODSMVT_CREATE in function module ZQM06_FM_TASK_GOODS_MOVEMENT which is z copy of FM QM06_FM_TASK_GOODS_MOVEMENT. The FM get used in transaction IW52 i.e. Change Notification
    Now my query is the BAPI contain import parameter as GOODSMVT_CODE (Assign Code to Transaction for Goods Movement) and i don't know which value to pass to it.
    Could you please help me out?
    Thanks & Regards,
    Parag

    Hi,
    check the data element GM_CODE documentation for your requirement.
    Regards,
    Boobalan S

  • Import Parameter as Select Option for a FM in ECC 6.0

    Hi All,
    Can someone help me get the import parameter of a function module to be of the type select-options( the way it is used in reports) in ECC 6.0.
    Thanks for all your help in advance.
    Divya

    What I do is as following....
    I create two parameters...One for <b>START</b> and the other for <b>END</b>....Then, inside my FM I create a RANGE...
      DATA: BEGIN OF r_datum OCCURS 1,
            sign(1),
            option(2),
            low  TYPE vekp-vhilm,
            high TYPE vekp-vhilm,
            END OF r_datum.
    Passing the START to low and END to high....
    P.S: Don't forget to assign points to useful answers.
    Greetings,
    Blag.
    Message was edited by:
            Alvaro Tejada Galindo

  • What are the import parameter for FM SWE_EVENT_CREATE

    Hello all,
    I want to use the function module SWE_EVENT_CREATE in order to create an event in order to execute a process chain which is triggered by this event.
    Beside the EVENT I have also OBJTYPE and OBJKEY as import parameter, but I do not know what should I enter there.
    In the TA sm64 where I have created the event, I could not find any other information than the event name.
    Any ideas would be great.
    Best regards,
    Stefan from Munich/Germany

    Hello Stefan,
    for OBJTYPE and EVENT see table SWETYPECOU
    OBJKEY usually is an idoc-number (edidc-docnum)
    hope it will help
    Regards Thomas

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Date format for parameter data entry

    I've just started working on MS SQL Server 2008 for the first time and am using Crystal XI11.5.  I have a date parameter used to pick data.  It works fine but the users are used to entering dates in mm/dd/yyyy format but this parameter forces users to enter using yyyy-mm-dd.
    Normally I am not too concerned as there is the calendar but I have a couple of keyboard users who would like to just enter in the date format they are used to.   I can't find any spot in Crystal to change the data entry format for the dates.
    I do understand that SQL Server does store dates in yyyy-mm-dd format so is this why I only have this option?  Any way to change it?  I do have dates in the report presenting in d-MMM-yyyy format without problem, it's just the date entry prompt.
    TIA rasinc

    The later versions of CR will not allow you to directly edit the SQL statement. You actually have to add a Command and remove the tables from the data source. You can, if you wish, copy the SQL from the "Show SQL Query" and paste it into the Command.
    The reason I tried to delete my previous comment is because it dawned on me (after I made the comment)  that the date picker control itself, won't accept any format other than YYYY-MM-DD.  So, while you can write the SQL to accept a variety of date formats, you won't be able use any of them while using that control.
    The CR date picker control can be found (and therefore replaced by someone w/ more guts than me) in the following locations...
    C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\prompting
    C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\prompting
    Jason

  • Line Drawing best file format for import in InDesign

    i was wondering what is  the accepted and recommended file format for files to be imported in InDesign. I was under the impression that AI files should be saved as EPS but I just read an article that says that Adobe's Dov  Isaacs said that eps will be shortly obsolete.What should I do. I work on curriculum that contains both photographs and line drawing and we use tiff for the former and eps for the latter. Most of our line drawing is done in AI. Howeverwe have a cartoonist that sends us files in jpg format. What would be the best file format for him and for us as we draw in AI?
    Article link: http://www.prepressure.com/library/file-formats/eps
    The future of the EPS file format
    EPS is rapidly becoming an outdated file format which is being  replaced by PDF just like PostScript itself is also being phased out and  replaced by PDF. Don’t just take my word on this. Here is what Dov  Isaacs from Adobe said in a discussion on a PrintPlanet forum about the  future of PostScript: “ …Adobe will continue to support EPS as a  legacy graphics format for import of non-color managed, opaque graphical  data into Adobe applications (such as InDesign and Illustrator).  Although we certain do not recommend that new graphical content be  stored in EPS format (except to satisfy the need to import data into  page layout programs that aren’t quite PDF-centric — no need to mention  names here!), our user base should feel comfortable that there is no  need to worry about a need to convert their very sizable libraries of  EPS-based graphic assets.”

    Yes, I drag the AI file in.
    If after it's in place I need to change I can just right click and chose edit original make the changes and save and the illustration in inDesign will reflect the changes.
    On the other hand I can make changes to the original and all iterations of the file will automatically update, say if I used the illustration in several documents.
    As an example I had completed a set of documents for a new company, i.e., biz cards, brochures, product labeling, stationery, etc. and in their wisdom they decided to make changes in their logo, which, of course, is on everything. I opened the AI file with the logo made the changes saved and all the documents then reflected the changes. The only caveat to do this seamlessly is to make sure that your file logo size is the same as the original or you might have to tweak placement in the other documents
    It is this interoperability that to me makes the Creative Suite so much more than the sum of their parts.
    Craig

  • Remote-enabled FM - empty value for import parameter

    Hi,
    I've created a remoted-enabled FM in ECC, to be called by an ABAP program in CRM.
    The FM has a import parameter of table (of char type). When it's called by the client with a value, but the debugging shown that the value is empty.
    Is there any special attention needed when defining table type for the import parameter?
    Any help would be much appreciated.
    p/s: Apology for te newbie question.
    Thanks.
    -julius

    Hello,
    When you declare parameters under the TABLES tab, you are actually declaring a global table with header-line in the FM. Be sure you re sending/checking the values in the table, not the header line.

  • Preferred import format for iphoto4

    I've got some old photos that were original scanned directly into PhotoDeluxe. Want them in iPhoto now for obvious reasons. iPhoto Import produces a text message for each photo that amounts to "Can't import".
    I can pass them through Photoshop and export them as almost any known format. But which one? I've tried TIFF, which I know to be lossless, and it apparently works well --the "before" and "after" photos look identical on the screen. But are others just as good?
    What's the preferred import format for iPhoto4 to maintain photo quality? (Is the answer the same for later versions? I assume so.)
    Thanks,
    Henry

    Henry,
    Had to do it myself with some old scans from PhotoDeluxe - run them through PhotoShop and save in another format. That text message means the PD file is propietary PD format - requires PD to use.
    Your export choice from Photoshop depends on what you plan to use the photo for. iPhoto is by nature a JPEG creature, but will accept and protect files in other formats.
    I open PD files in PhotoShop or PhotoShop Elements and Save As a full .psd file for safekeeping and as a .jpg I import into iPhoto. I don't have use for anything bigger or better than a .jpg in iPhoto. I don't edit or print with iPhoto.
    Peter

Maybe you are looking for

  • How to define function within for loop pls help?????

    Hi this is the problem i have a class, and within that class there is an actionPerformed function, in this class i also create an instance of another class, this other class also contains an actionPerformed function, which wis executed if a jButton h

  • Printing 1099 MISC form

    Hi Gurus, I have a requirement to print 1099 MISC form. Sap has give a standard smartform " IDWTCERT_US_1099MISC " for this purpose. The only problem with this form is it prints Copy B for recipient of the the usual 1099 form . It does not have pages

  • Month End Costing Activity

    Dear, We are doing Month End Costing Activity for month june-09 and when we run ck40n with variant LEGJUNE9, job is cancelled and system shows error - "Sytem message 007 from work area SU does not exist". Regards, Kaushal

  • Bookmarks Internet Explorer 8

    Hi folks, many users of our BI 7.0 web reports are using IE 8. Everthing seems to be working fine except setting bookmarks. Bookmarks are stored in the system, but there's no way accessing them easily. Before, the user was prompted to store the bookm

  • Trouble downloading 4.o

    I've tried downloading and when I get to the stage of drawing the image into my Applications Folder I get a message that says it cannot be done because I don't have permission. My computer is an Apple OS X running Snow Leopard. It is my personal comp