Batch input of a list of values

Hello,
I have to make a batch input of a list.
The screen of the transaction contains a list with 9 lines, if i enter a value in one, another line is added to the list.
I did record this transaction and have an incremented list in the generated program that looks like this :
it begins whith ADRPCIT-POST_CODE(01) and increments till 09
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(08)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'ADRPCDCITY-POST_CODE(08)'
                              record-POST_CODE_08_017.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(09)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'ADRPCDCITY-POST_CODE(09)'
                              record-POST_CODE_09_018.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(09)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(07)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'ADRPCDCITY-POST_CODE(07)'
                              record-POST_CODE_07_019.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(08)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'ADRPCDCITY-POST_CODE(08)'
                              record-POST_CODE_08_020.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(09)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'ADRPCDCITY-POST_CODE(09)'
                              record-POST_CODE_09_021.
perform bdc_dynpro      using 'SAPLSZRL' '0400'.
perform bdc_field       using 'BDC_CURSOR'
                              'ADRPCDCITY-POST_CODE(09)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SAVE'.
What i did is setting the value of the incremented number to 09 if it's greater than 09 but i'm not sure it's the right way to do it cause i get only 9 records
My code :
LOOP AT gt_record ASSIGNING <fs_record>.
    IF sy-tabix > 9.
      ligne = 9.
    ELSE.
      ligne = sy-tabix.
    ENDIF.
    IF ligne > 1.
      IF city_mem EQ <fs_record>-city_code_001.
        flag_end = 'X'.
      ELSE.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=SAVE'.
        PERFORM bdc_transaction USING 'SR10'.
        CLEAR flag_end.
      ENDIF.
    ENDIF.
    city_mem = <fs_record>-city_code_001.
    IF flag_end NE 'X'. "premier passage
      PERFORM bdc_dynpro      USING 'SAPLSZRC' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'ADRCITYD-CITY_CODE'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'ADRCITYD-CITY_CODE'
                                    <fs_record>-city_code_001.
      PERFORM bdc_field       USING 'ADRCITYD-COUNTRY'
                                    'FR'.
      PERFORM bdc_field       USING 'ADRCITYD-LANGU'
                                    'F'.
      PERFORM bdc_dynpro      USING 'SAPLSZRC' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'ADRCITYD-COMMU_CODE'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'ADRCITYD-FLAG_STRTS'
                                    'X'.
      PERFORM bdc_field       USING 'ADRCITYD-CITY_NAME'
                                    <fs_record>-city_name_005.
      PERFORM bdc_field       USING 'ADRCITYD-REGION'
                                    <fs_record>-region_006.
      PERFORM bdc_field       USING 'ADRCITYD-TIME_ZONE'
                                    'CET'.
      PERFORM bdc_field       USING 'ADRCITYD-COMMU_CODE'
                                    <fs_record>-commu_code_008.
      PERFORM bdc_field       USING 'ADRCITYD-DEF_LANGU'
                                     'F'.
      PERFORM bdc_dynpro      USING 'SAPLSZRC' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'ADRCITYD-CITY_NAME'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=PSTC'.
      PERFORM bdc_field       USING 'ADRCITYD-FLAG_STRTS'
                                    'X'.
      PERFORM bdc_field       USING 'ADRCITYD-CITY_NAME'
                                    <fs_record>-city_name_005.
      PERFORM bdc_field       USING 'ADRCITYD-REGION'
                                    <fs_record>-region_006.
      PERFORM bdc_field       USING 'ADRCITYD-TIME_ZONE'
                                    'CET'.
      PERFORM bdc_field       USING 'ADRCITYD-COMMU_CODE'
                                    <fs_record>-commu_code_008.
      PERFORM bdc_field       USING 'ADRCITYD-DEF_LANGU'
                                    'F'.
*      PERFORM bdc_dynpro      USING 'SAPLSZRL' '0400'.
    ENDIF.
    PERFORM bdc_dynpro      USING 'SAPLSZRL' '0400'.        "ajout2
    lignec = ligne.
    CONCATENATE 'ADRPCDCITY-POST_CODE(' lignec ')' INTO cp.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  cp.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.
    PERFORM bdc_field       USING cp
                                  <fs_record>-post_code_01_016.
  ENDLOOP.
*  deniere sauvegarde
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=SAVE'.
  PERFORM bdc_transaction USING 'SR10'.
  CLEAR flag_end.
  PERFORM close_group.
  PERFORM close_dataset USING dataset.
Can somebody help me on this one ?
Thank you,
Tom.

If it is table control you may have to pass PageDown after 9 rec & again start with (01)
record number remains 1 to 9 but Top_line parameter will change to 9or10 after 1 pagedown.
Cxould be P++
you can record Pagedown & check recording.

Similar Messages

  • Regarding  input combo box list of values

    Hi,
    I am using JDev 11.1.1.5.0
    I used the input combo box list of values in adf application based on VO.When I type a value in the input combo box and press TAB key,it gives first item of that list rather than that entered value and when I open the list, it shows the repeating values of the first item.
    Please suggest me some solutions.

    Hi,
    hard to say based on your description. Try with 11.1.1.6 or 11.1.17 and if it reproduces, provide a test case based on the HR schema. Is that an option ? Then send it my way in a zip file renamed to "unzip". My mail address is in my OTN profile, just follow the named link left to this reply
    Frank

  • Problem with "Input text with List of Value"

    Hi,
    I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
    thanks
    Sanjay

    Hi,
    I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
    Frank

  • Problems Batch Input BDC-okCODE = LIST

    Hi experts!!
    I've a batch Input that must change the data from the infotype 2001. I do this steps...
    1. Go to PA30
    2. Insert the pernr and the code 2001
    3. Press the button LIST
    4. Choice the row I want to change, only the rows that are ocked
    5. Update and save...
    I'm trying to do this with a Batch Input, but I don't know how to indicate what row I want to change...I have a data that has all the positions that are locked in 2001 but I don't know how to know what row is from what row of my table... can anybody help me?
    Thanks a lot
    Regards,
    Rebeca

    Hi Rebeca,
    It is difficult to find the locked recods dynamically using your  BDC approach.
    The other way to delete the locked records is....
    Select the all the records from PA2001 infotype where SPRPS equal to 'X' ( Locked Entries ) into the itab internal table.
    later Loop the table and delete the record from 2001 using BDC on PA30.
    Do the recording for deleting individual  record.

  • Setting value in input combo box list of values programmatically.

    Hi,
    I have the following requirement.
    I have a combo box LOV defined in the column of application table. Whenever the user is trying to change this value, I need to check for a condition and invoke a warning popup with yes/no button and allow the user to change if dialog outcome is 'yes'. If the outcome is 'No', then i need to reset the combo box to its original value. To do this, in the valuechangelistener of LOV, I am invoking the warning popup and control will coming out of the valuechangelistener and dialog listener will be called.
    How do i set the combo box value in dialog listener ? and How do I retain the existing value of the LOV if user clicks on 'No' button.
    Jdev Version : Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
    Thanks in advance.
    Harish

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Validation error message is not displayed for an attribute as an Input List Of Value

    Hi everyone,
    I use jdev 11.1.1.7.0
    In my application I've created an Entity Obj and a View Obj base Employees table.
    for the JobId attribute I've taken actions as listed below:
    1. in Employees EO I've created a validation for this attribute and in some cases an error message returns (the error message is "the salary is not high"):
         * Validation method for JobId.
        public boolean validateJobId(String jobid) {
            if (...) {
                return false;
            if (...) {
                return false;
            if (...) {
                return false;
            return true;
    2. in Employees VO  I've created a LOV for this attribute (the view accessor is JobsViewObj ) and I display the attribute as an Input Text with List Of Values.
    in jspx page I drag& drop this attribute as below:
              <af:inputListOfValues id="jobIdId"
                                    popupTitle="Search and Select: #{bindings.JobId.hints.label}"
                                    value="#{bindings.JobId.inputValue}"
                                    label="#{bindings.JobId.hints.label}"
                                    model="#{bindings.JobId.listOfValuesModel}"
                                    required="#{bindings.JobId.hints.mandatory}"
                                    columns="#{bindings.JobId.hints.displayWidth}"
                                    shortDesc="#{bindings.JobId.hints.tooltip}"
                                    autoSubmit="true">
                <f:validator binding="#{bindings.JobId.validator}"/>
              </af:inputListOfValues>
    I open the Popup and I select a row from the Popup list and then I click Ok. After that if the validation method(validateJobId) returns false, the error message("the salary is not high") must be show to the user. but the error message doesn't display. I don't understand why this happens.
    Can anybody guide me about this problem?
    Regards
    Habib

    yes, you're right, I've tested it in 12.1.3 and error message was displayed.
    it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
    Regards
    Habib

  • Input List of values in Query panel

    Hi ,
    Problem statement ::
    Develop a page which should have Query panel and table . Query panel should have 2 fields and on the basis of these input values underlined table should display the values.
    These 2 fields should be inputListOfValues( Input field with search option on this fields ).
    What we are doing :
    1. Creating Field1_in_Query_panel_LOV_VO view object with UI hint as Input Text with List of Values.
    2. Creating Field2_in_Query_panel_LOV_VO view object with UI hint as Input Text with List of Values.
    3. Creating Table_VO with required query , and attaching the view criteria for Field1 and Field2 .
    4. IN the Attributes section , we are creating LOVs for Field1 and Field2 with View objects created in step 1 and step2.
    5. Normal procedure of dragging and dropping the search criteria option on the page and creating the query with ADF table.
    When we are running the page , the Query panel fields are coming in the drop down with no of values restricted to 10.
    Pls suggest a way to achieve this functionality mentioned in the problem statement.
    Jdev version used : 11.1.1.6
    Edited by: 954422 on Aug 23, 2012 12:28 AM

    Hi,
    Welcome to OTN.
    Have you tried setting the range size for the vo (which is used as LOV on your main VO) to -1 and see if it works then?
    Note : If your have more values to be displayed in LOV, it is better to use InputListOfValues instead of SOC
    -Arun

  • LSMW for routing with standard batch input

    Hello All,
    I am trying to prepare one LSMW for routing upload for PP module. Routing data contains header data, operation data and master inspection characteristics data.
    I have created three source structures viz. material- task list header, task header data, operation and inspection.
    Header has been assigned to target structure BIMPL- Batch Input Structure for Allocation of Mat. to Task Lists,
    Task header data source structure has been assigned to BIPKO- Batch Input Structure for Task List Header,
    Operation source structure has been assigned to target structure BIPPO- Batch input structure for task list operation,
    and inspection source structure has been assigned to BIPMK- Inspection characteristics for batch input of task lists.
    Every source structure has been identified with an identifier value of which have been set as H, I,J,K for all source structures resp.
    The excel file has been prepared as follows,
    H     MATNR     WERKS     PLNNR     PLNAL               
    H     100045     1000     50000043     1               
    H     100045     1000     50000043     2               
    I     MATNR     WERKS     PLNNR     PLNAL     VALID_FROM     USAGE     STATUS
    I     100045     1000     50000043     1     01012000     1                1
    I     100045    1000     50000043     2     01012000     1                 1
    I have mentioned here the combination of first two structures only. But it contains data of other two source structures as well (for identifier J & K).
    The data from the excel is copied to the flat file and same is specified in LSMW in the step 'Specify file'.
    In 'Assign file' step the flat file is assigned to all the four source structure.
    Now at the time of reading data system is throwing me an error as 'Ensure field sequence is correct for data for mutiple source structures' Message no. /SAPDMC/LSMW_OBJ_060026
    How to overcome this?
    <removed by moderator> answers will be greatly appreciated........
    Mimiri
    Edited by: Thomas Zloch on Jul 11, 2011 10:16 AM

    Hello ,
    have you maintained this check box for the key fields"
    LSMW>Maintain Source fields>double click on fieds : MATNR WERKS PLNNR PLNAL
    Selection Parameter for "Import/Convert Data"-->Tick this check box
    regards

  • Pass list of values to DB adapter from BPEL process

    We want to pass a list of values (length of list and values to be passed will be dynamically determined by the input to this invocation)
    How do we pass the input as a list of values to a db adapter where the list of values will form a part of input query where clause.
    say eg
    select date from tablea where columna in (List1,list2,lsit3) etc
    Thanks

    This will help you
    http://soa-howto.blogspot.com/2009/05/how-to-use-sql-query-having-in-clause.html

  • How do I bind variables in a List of value

    I'm using jdev 11g. I have an updatable view object for which I want to use a list of values on a few fields. I have defined a read-only view object that query a table that contains several list of values based on a column call domain. How do I narrow the returned list of values with a bind variable. Or do I need to define a view object for each domain?

    Hi Frank,
    Thanks for your reply. After playing with different options with the list of values, I came to the conclusion that this functionality has been added to 11g to replicate Form's LOV functionality. However, if I select a radio group as the default list type, the filter option is grayed out. Also, i'm not sure i understand the relationship between the default list type and the control type on a page. I tried to define a default list type as Input Text with List of Values which let me add a filter, and on my page I dropped the field as a single selection radio group. In this case the filter does not work. Only if i drop a List of Value the filter will work but i don't want this king of interface.
    The way i did this with 10g was to define a view object with bindings and set the bind variable value on the binding page using a invokeAction. Is it still the way to do this in 11g?

  • Lov - List of values

    people,
    am using jdveeloper11g 11.1.1.4.0
    first of fall i want do in input text with List of Values
    if i select city means
    corresponding state and country must be displayed.
    can one guideme or else
    paste the link regarding this.

    hi..
    You can archive that with your VO.
    In model project double click on sampleVO --> Attributes --> select relevan field --> press green + button for list of value --> select or Add list data source by pressing green + and Add relevant view accessors to shown state and country,finally edit UI hints as you want with adding state and country.
    hope this will helpful..

  • Regarding document type in  batch input session

    Hi,
        when i run int.cal. (f.16) it is calculating perfect and posting also perfect using TC FB01 when i run batch input session but the deflaut values i.e.. doument type is assigned DA but now the client want to change the document type from DA to DG. How to change the document type in batch input session name RFDZIS00
                          Advance thanks
    Dinesh

    try to change table t033e ANWND = 5 with tcode se11
    A.

  • I need to validate Input List Of Values Field when Inserted From Bean

    I've two view object EmployeeView and DepartmentsView
    In Employee View I've changed Department_Id to Input List OF Values
    I've created a bean to inset data into Employee Table
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }I know that ADF validate Input list of values when inserting new value on it
    when I've enabled the debugger I've found that
    <ViewObjectImpl><buildQuery> [604] SELECT DepartmentsEO.DEPARTMENT_ID,         DepartmentsEO.DEPARTMENT_NAME,         DepartmentsEO.MANAGER_ID,         DepartmentsEO.LOCATION_ID,         DepartmentsEO.ISDELETED FROM DEPARTMENTS DepartmentsEO WHERE ( ( (DepartmentsEO.DEPARTMENT_ID = :vc_temp_1 ) ) )
    <ViewObjectImpl><bindParametersForCollection> [605] Bind params for ViewObject: [com.test.model.views.DepartmentsEOView]AppModule.__LOCAL_VIEW_USAGE_com_test_model_views_EmployeesEOView_DepartmentsView_findByVC_12_LOV_DepartmentId_lov__filterlist__vcr___
    <OracleSQLBuilderImpl><bindParamValue> [606] Binding param "vc_temp_1": 999
    <ViewObjectImpl><processViewCriteriaForRowMatch> [607] VCs converted to RowMatch:  ( (DepartmentId = :vc_temp_1 ) )
    <ViewRowImpl><handleListBindingMismatch> [608] No matching row found for list binding:LOV_DepartmentId for ViewRow:oracle.jbo.Key[34235 ]
    <ViewRowImpl><handleListBindingMismatch> [609] --- filterList ValueMap key:DepartmentId, value:999
    <DCBindingContainer><internalRefreshControl> [610] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <JUCtrlHierNodeBinding><release> [611] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <JUCtrlHierNodeBinding><release> [612] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <DCIteratorBinding><releaseDataInternal> [613] Releasing iterator binding:EmployeesViewIterator
    <ApplicationPoolMessageHandler><doPoolMessage> [614] **** PoolMessage REQ ATTACH LWS
    <ApplicationPoolMessageHandler><doPoolMessage> [615] **** PoolMessage REQ DETACH LWS
    <DCJboDataControl><initializeApplicationModule> [616] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
    <DCBindingContainer><internalRefreshControl> [617] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <DCBindingContainerState><validateToken> [618] Process BindingContainer state token(decompressed state):BCST:=0%V%=NEmployeesViewIterator=-D-,
    <this means that ADF tries to validate the input list of values "Department_Id" and didn't found any match
    I need to through exception when I try to set Department_ID with invalid value "value not on range" like
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));I don't want to validate it manually as I've a lot of fields.
    I need to through exception when try to
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));

    Thanks Timo
    this is the code that I use
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
          EmployeesEOViewRowImpl newEmp = (EmployeesEOViewRowImpl)importedVO .createRow();
          importedVO .insertRow(newEmp);
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }

  • How to Hide advance button in input list of values Popup

    I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option

    I haven't tried this, but check
    How to remove basic/advanced button in inputListOfValues search dialog
    This does not have complete solution, but might give you some lead.

  • Is it possible to input a value in an output field in a batch input sessio?

    Hi everybody
    A quick question
    I wanted to know if theres a way to put a value in an output field when doing a batch input?
    I think its not possible but Im not sure
    PLease do confirm

    Hi sia,
    1. Ofcourse not
    2. BCOS
    3. Batch input
       indirectly is nothing
       but SIMULATION / EXACT COPY OF MANUAL ENTRY
       of that particular transaction.
    4. If the transaction does not allow
       entry in manual mode,
       then it won't allow even in batch input/sessoin/bdc mode.
    regards,
    amit m.

Maybe you are looking for

  • Install Builder error

    Error message from Install Build LabView 2014 on Windows 7 What might this mean? Call Library Function Node in NI_MDF.lvlib:MDFProdInfoList_Close.vi->CDK_DistParts_GetInstalledProducts_CORE.vi->CDK_DistParts_GetInstalledProducts.vi->CDK_Validate_Dist

  • ITunes automatically quiting

    Whenever I try to open iTunes I get an error message saying that iTunes has encountered a problem and needs to close. It sent me a link to try and fix it but it didn't work. I've also sent an Error Report countless times. I'm getting kind of mad caus

  • Document printing very very small in corner of page

    My pdf s are printing very very small in the corner of the Page.  This just started yesterday.  I cant figure out in any of my settings why this would have started.  It is also intermittent meaning that it does not happen with all documents.

  • Filter Distort Displace- nothing happens

    I got some great help here back in February when I had only been studying Photoshop for two weeks. Now I'm a seasoned user of three months. [Hysterical laughter!] I'm on that hamster wheel where you do the thing over and over again and can't see why

  • Paint components on a graphics

    Hi, I have made the following: public class Pmsg extends Panel{ public Pmsg() super(); public paint(g) g.drawString("http://www.java.sun.com",10,50); g.drawLine(10,50,120,50); My problem is that I want to make the link http://www.java.sun.com clickab