Is there anyone there who can tell me about batch input?

What is batch input?
Thanks.

HI,
this is a technique to update the sap database from non-sap database.
non-sap data will be stored to some flat file first and the it will be moved to sap data base.
here is an example which will update the purchase order details from flat file check it.
report ZBH_PURORDER no standard page heading line-size 255.
PARAMETERS:P_FILE LIKE IBIPPARMS-PATH.
DATA FILENAME TYPE STRING.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
   EXPORTING
      program_name  = sy-cprog
      dynpro_number = sy-dynnr
   IMPORTING
      file_name     = P_FILE.
START-OF-SELECTION.
FILENAME = P_FILE.
DATA:BEGIN OF XTAB OCCURS 0,
TYP,
DES(255) TYPE C,
END OF XTAB.
DATA:BEGIN OF ITAB OCCURS 0,
SUPERFIELD LIKE MEPO_TOPLINE-SUPERFIELD,
EKORG LIKE MEPO1222-EKORG,
EKGRP LIKE MEPO1222-EKGRP,
BUKRS LIKE MEPO1222-BUKRS,
END OF ITAB.
DATA:BEGIN OF JTAB OCCURS 0,
N(4) TYPE C,
EMATN LIKE MEPO1211-EMATN,
MENGE(13) TYPE C,
NETPR(13) TYPE C,
NAME1 LIKE MEPO1211-NAME1,
END OF JTAB.
DATA:BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
DATA:DELIMITER VALUE '*'.
DATA A TYPE I.
DATA M(4) TYPE N.
DATA L_FNAM(30) TYPE C.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                      = FILENAME
   FILETYPE                      = 'ASC'
  TABLES
    DATA_TAB                      = XTAB.
LOOP AT XTAB.
IF XTAB-TYP = 'H'.
  SPLIT XTAB-DES AT DELIMITER INTO ITAB-SUPERFIELD ITAB-EKORG ITAB-EKGRP
  ITAB-BUKRS.
  JTAB-N = JTAB-N + 1.
  APPEND ITAB.
ELSEIF XTAB-TYP = 'I'.
  SPLIT XTAB-DES AT DELIMITER INTO JTAB-EMATN JTAB-MENGE JTAB-NETPR
  JTAB-NAME1.
APPEND JTAB.
ENDIF.
ENDLOOP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
   CLIENT                    = SY-MANDT
   GROUP                     = 'PORDER'
   KEEP                      = 'X'
   USER                      = SY-UNAME.
LOOP AT ITAB.
A = SY-TABIX.
REFRESH BDCTAB.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO_TOPLINE-SUPERFIELD'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              'NB'.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              ITAB-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              '09.02.2007'.
perform bdc_field       using 'DYN_6000-LIST'
                              '                                      1'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MEV4000BUTTON'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              'NB'.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              ITAB-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              '09.02.2007'.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO1222-EKORG'.
perform bdc_field       using 'MEPO1222-EKORG'
                              ITAB-EKORG.
perform bdc_field       using 'MEPO1222-EKGRP'
                              ITAB-EKGRP.
perform bdc_field       using 'MEPO1222-BUKRS'
                              ITAB-BUKRS.
perform bdc_field       using 'DYN_6000-LIST'
                              '                                      1'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MEV4001BUTTON'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              'NB'.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              ITAB-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              '09.02.2007'.
perform bdc_field       using 'MEPO1222-EKORG'
                              ITAB-EKORG.
perform bdc_field       using 'MEPO1222-EKGRP'
                             ITAB-EKGRP.
perform bdc_field       using 'MEPO1222-BUKRS'
                             ITAB-BUKRS.
M = 1.
LOOP AT JTAB.
IF JTAB-N = A.
WRITE:/ JTAB.
CONCATENATE 'MEPO1211-EMATN(' M ')' INTO L_FNAM.
perform bdc_field       using 'BDC_CURSOR'
                              L_FNAM.
perform bdc_field       using L_FNAM
                              JTAB-EMATN.
CONCATENATE 'MEPO1211-MENGE(' M ')' INTO L_FNAM.
perform bdc_field       using L_FNAM
                              JTAB-MENGE.
CONCATENATE 'MEPO1211-NETPR(' M ')' INTO L_FNAM.
perform bdc_field       using L_FNAM
                              JTAB-NETPR.
CONCATENATE 'MEPO1211-NAME1(' M ')' INTO L_FNAM.
perform bdc_field       using L_FNAM
                              JTAB-NAME1.
M = M + 1.
ENDIF.
ENDLOOP.
perform bdc_field       using 'DYN_6000-LIST'
                              '                                      1'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
perform bdc_field       using 'MEPO_TOPLINE-BSART'
                              'NB'.
perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                              ITAB-SUPERFIELD.
perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                              '09.02.2007'.
perform bdc_field       using 'MEPO1222-EKORG'
                              ITAB-EKORG.
perform bdc_field       using 'MEPO1222-EKGRP'
                              ITAB-EKGRP.
perform bdc_field       using 'MEPO1222-BUKRS'
                              ITAB-BUKRS.
perform bdc_field       using 'DYN_6000-LIST'
                              '                                      1'.
perform bdc_field       using 'BDC_CURSOR'
                              'MEPO1319-MATKL'.
perform bdc_field       using 'MEPO1319-SPINF'
                              'X'.
perform bdc_field       using 'BDC_OKCODE'
                              '=MESAVE'.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
   TCODE                  = 'ME21N'
  TABLES
    DYNPROTAB              = BDCTAB.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
  CLEAR BDCTAB.
  BDCTAB-PROGRAM  = PROGRAM.
  BDCTAB-DYNPRO   = DYNPRO.
  BDCTAB-DYNBEGIN = 'X'.
  APPEND BDCTAB.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
    CLEAR BDCTAB.
    BDCTAB-FNAM = FNAM.
    BDCTAB-FVAL = FVAL.
    APPEND BDCTAB.
ENDFORM.
FLAT FILE:
H1171611000001*1000
ICPU116000*1000
ILEY BOARD1010000*1000
IMOUSE66000*1000
H1171711000001*1000
ICPU580000*1000
H1171701000001*1000
IMOUSE33000*1000
ILEY BOARD1010000*1000
reward if helpful.
rgds,
bharat.

Similar Messages

  • Who can tell me about his forms2adf experience?

    Hello!
    Why is forms2adf not part of the evaluation version? This makes no sense to me. It is hard for me to convince my chef, to buy a software and I can't even tell him, if we will need it or not. All the reports and demos on forms2adf look very nice, but I have to see how it works with our forms implementations.
    What exactly is happening when forms2adf does the conversion? Did I understand it correct that forms2adf does the following things.
    1. Create jsp pages based on the forms canvas
    2. Create the ADF task flows
    3. Create the ADF Datacontrols Model
    4. Create the ADF BC EO, VO and AppModule
    5. Copy all the plsql code from forms into the database
    Does anyone have experience with forms2adf and can tell me about his experience?
    Greetings
    Tobi

    Tobi,
    I will get back to you later with a longer reply, there is a lot of "misperception" around forms2adf.
    Regarding the functionality: 1) to 4): correct, 5) not correct, we only copy the PL/SQL code as documentation nodes to the application definition editor.
    You might want to check out chapter 13 of the JHeadstart Developers guide:
    http://download.oracle.com/consulting/jhsdevguide1111.pdf
    Steven Davelaar,
    JHeadstart team.

  • Who can tell me about the plugin bug

    The Plugin
    X-Plane 10/Resources/plugins/shrink-wrap.plugin/mac.xpl.
    on my iMac 27' refuse to start because my iMac 27' system is blocking it.
    Who can tell me why this blocade and
    What can I do abot?

    I need more details about the exception and where it occurs in your program.
    Also, the protocol trace with your mail server might help. (See the JavaMail
    FAQ.)
    BTW, you should probably use the setText method instead of setContent.

  • Who can tell me about the usage of jar -m ?

    Hi!
    When I try to add my Manifest.mf to my .jar file , use :
    jar -cvfm mytest.jar Manifest.mf -C camon/test/ test.class
    but the result is a error :
      java.io.FileNotFoundException: Manifest (The system cannot find the file specifi
       ed)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:64)
            at sun.tools.jar.Main.run(Main.java:124)
            at sun.tools.jar.Main.main(Main.java:904)
    my Manifest.mf is like following :
        Manifest-Version: 1.0
        Name: "Camon Test for Manifest"
        Main-Class: camon.test.Test
        Created-By: 1.3.1_01 (Sun Microsystems Inc.)
    Any help is appreciated!!

    Yes , it can work normally ,but you can't access your Manifest.mf when you java -jar mytest.jar , I get the way now :
    1 . Create folder meta-inf ,and copy Manifest.mf here;
    2 . use this command :
    jar -cvfm mytest.jar meta-inf/Menifest.mf -C camon/test/ Test.class
    3 . then ,you can run a .jar with :(of course you will init the Main- Class)
    java -jar mytest.jar

  • I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help pleas

    I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help please?

    click setup, not autoplay.

  • Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal, How can i know whether my phone is in use??

    Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal bcz it seems to be wiped out all data including settings. it might be in use somewhere turning new fresh Gadget.  How can i know whether my phone is in use??

    You would know for a fact if the device is in use, but if you go back to the find my iPhone app in iCloud.com, you can either select to erase it, or place it in lost mode, in which case, once the device makes a connection to the internet, it will automatically go into that mode.

  • HT4061 My iphone 4s remains in recovery mode permamently. Itunes wont restore it, constant messages of error 4013 keeps coming up on screen, is there any1 out there who can help before i crack up?

    My iphone 4s remains in recovery mode permamently. Itunes wont restore it, constant messages of error 4013 keeps coming up on screen, is there any1 out there who can help before i crack up?

    Hello Sean,
    It sounds like you are constantly needing to restore your phone because it keeps going into recovery mode. Usually putting a device into recovery mode and restoring it can help isolate an issue to your iPhone hardware if an issue persists afterwards. I would try manually putting it into recovery mode and restoring it 1 more time:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    If that does not resolve it the symptoms indicate to me that it is a hardware issue causing this to happen and would seek service for it:
    iPhone Repair - Other Repairs
    https://www.apple.com/support/iphone/repair/other/
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Who can tell me the website which has some oracle client_si

    I have read from here there is a website which has some
    client_side program of oracle on linux, but i forgot the address,
    who can tell me? (something like sqlplus under x, etc)
    null

    sander (guest) wrote:
    : tianhuimin (guest) wrote:
    : : I have read from here there is a website which has some
    : : client_side program of oracle on linux, but i forgot the
    : address,
    : : who can tell me? (something like sqlplus under x, etc)
    : Hi,
    : On linuxberg.com in the X11 | database section you'll find a
    : tablebrowser and sessionmonitor for oracle (based on Qt lib).
    : I far as i know there no sqlplus for x, although i don't know
    : what you mean excactly....
    : btw. i've tried to install SQLplus for W95 on W98 -> no go
    You have to upgrade your SQL*NET 8 Client to 8.0.4.3 (80403.exe)
    The patch is avalable somewhere on the oracle web. If you don't
    find it, send me a email and I'll send it
    : Do you have any experience with this?
    : Regards,
    : Sander
    null

  • Who can tell me the usage of TCode:OMFS?

    Who can tell me the usage of TCode:OMFS?
    When we need to configurate these?
    Thank in advance.

    Hi,
    By flagging a field on here, yes, that is what it is designed to do.
    If you change the delivery address for instance you would surely need to tell the vendor? So you would flag these fields so that the new PO (which can be a PO with ONLY the changes on it, or a full reprint of the PO, depending on which you want), is printed and sent to the vendor.
    If the Purchasing group is changed then you may decide that this should NOT trigger a print of the changes, so you don't flag that field.
    It is entirely up to you which fields you flag, all, some or none.
    There is a flag for each type of document (RFQ, PO, Contract and Scheduling agreement and so you can set different flags for each)
    You can also specify the text number to control what the change text is, such as "Delivery address changed" etc.
    You can even use special routines that can manage more complex actions for each change.
    As susual the SAP system is giving you many options that you CAN use if you want to, but you don't have to use them if you don't want to.
    Steve B

  • Who can tell me?

    Hello everybody!!!
    Im trying to send to the other computer (or localy to myself) video stream from my Webcamera. I have captured device, made processor, and now I would like to send. To do so, I chose solution based on RTPManager. It looks like that:
    //getting data source, so we can create SendStream later on
              System.out.println("Getting output DataSource from processor.");
              DataSource rtpOutputDataSource = processor.getDataOutput();
              //creating RTPManager to handle the session,
              //initialization with host address
              System.out.println("Creation of RTPManager");
              try{
                   rtpSessionManager = RTPManager.newInstance();
                   SessionAddress hostAddress = new SessionAddress();
                   rtpSessionManager.initialize(hostAddress);
              }catch (Exception e){
                   System.out.println(e.toString());
                   System.exit(-1);
              //create address of recipients and add as the target
              //to RTPManager and adding listeners
              System.out.println("Applying target address.");
              try {
                            //sending to myself 10.9.0.82
                   InetAddress receiverAddressIP = InetAddress.getByName("10.9.0.82");
                   targetAddress = new SessionAddress(receiverAddressIP,2232);
                   rtpSessionManager.addTarget(targetAddress);
                   rtpSessionManager.addSessionListener(this);
                   rtpSessionManager.addRemoteListener(this);
                   rtpSessionManager.addSendStreamListener(this);
              }catch (Exception e){
                   System.out.println(e.toString());
                   System.exit(-1);
              //create and start the stream of video data
              System.out.println("Starting streaming");
              try{
                   SendStream streamToSend = rtpSessionManager.createSendStream(rtpOutputDataSource,0);
                   streamToSend.start();
              }catch (Exception e){
                   System.out.println(e.toString());
                   System.exit(-1);
              System.out.println("Sending....");After appearing a string "Sending.." I run JMStudio and try to "Open RTP Session" with IP value: 10.9.0.82 and port: 2232, and nothing happends (It waits 60 seconds for data ?). Who can tell me what i do wrong? Please help me. :)
    Besr regards

    Alright, I've read your post again, so let me see if I understand you correctly. You want to erase your phone, but then cannot use the phone because it will not allow you to erase it because of Find My iPhone? If that is the case, then you need to log into iCloud and select erase all content and settings there, then remove it from the iCloud account. That will allow you to access the device. However, if you are not the original owner of the phone, it may be that it is asking for a different Apple ID and password than yours. Which is the case?

  • I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to easily, and when it does it can never connect?

    I've seen all the posts for fixing the wifi on the 4s, none of them work!  So, who can tell me why my iPhone 4S cannot find any wifi when it used to find wifi, and when it does find a wifi network it can never connect?  You think apple would have a clue how to fix it!  Because turning the wifi on and off doesn't work, resorting network settings doesn't work, even restoring phone to factory default doesn't work...

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

  • Who can tell me how to search keywords in java

    recently I'm doing a project called "Persistent Search Engine",
    when I came to search part implementation, I'm puzzeld with the resource on the web, I found many of the implementation was did with the package " javax.help.search", but I didn't know how to use it, and where can I get it, or just it's already in the java libarary? who can tell me something about it ?
    thankyou very much! ---shieldy

    See here http://java.sun.com/products/javahelp/

  • Who can tell me how to get the CRT for BBPCRM patch 8

    hello ,
    my solution patch level is SAP_BASIS     700     0011     SAPKB70011     SAP Basis Component
    SAP_ABA     700     0011     SAPKA70011     Cross-Application Component
    PI_BASIS     2005_1_700     0011     SAPKIPYJ7B     PI_BASIS 2005_1_700
    ST-PI     2005_1_700     0003     SAPKITLQI3     SAP Solution Tools Plug-In
    SAP_BW     700     0012     SAPKW70012     SAP NetWeaver BI 7.0
    SAP_AP     700     0008     SAPKNA7008     SAP Application Platform
    BBPCRM     500     0007     SAPKU50007     BBPCRM
    CPRXRPM     400     0002     SAPK-40002INCPRXRPM     SAP xRPM/cProjects/cFolders 4.00 (ABAP)
    ST     400     0010     SAPKITL420     SAP Solution Manager Tool
    ST-A/PI     01G_BCO700     0000     -     Servicetools for other App./Netweaver 04
    ST-ICO     150_700     0007     SAPK-15077INSTPL     SAP Solution Manager Implementation Cont
    ST-SER     700_2005_2     0002     SAPKITLOC2     SAP Solution Manager Service Tools
    But now , i find some CRM function can not be used , for example , i could not create a servcie message and monitor , if i create a service message and monitor the message , an abap dump occurs ,  the dump error is
    CALL_METHOD_NOT_IMPLEMENTED
    CX_SY_DYN_CALL_ILLEGAL_METH 
      Error in the ABAP Application Program
      The current ABAP program "CL_EX_CRM_APPOINTMENT_BADI====CP" had to be
       terminated because it has
      come across a statement that unfortunately cannot be executed.
    i try to upgrade the BBPCRM patch to 8 . the system tell me that you should need a CRT for the patch . i try to find the CRT, Unfortunate , i could't find it . who can tell me how to find the CRT . thanks !

    Hi Tony,
    Please, refer to note 892412. Here you can find the patch level required depending on the solman used. I can tell u that we have applied this note and currently we create service messages. Check this patch levels first.
    Regds,
    Jose Sorli

  • Who can tell me how to use ni-imaq functions imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute?

    Who can tell me how to use ni-imaq functions imgSessionSerialFlash,imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute?
    My camera is duncantech ms3100 and the frame grabber is pci-1428.I use ni-imaq2.6.When I use these functions,it tell me error -1074397163(IMG_ERR_BINT:Bad interface) .

    I have the same problem on my IPAD 2. One calender that i cant delete or find any settings for... Its just in the calender app under diffrent calenders.  how do i delete it?

  • Who can tell me how to use the  transction "KKRC"?

    who can tell me how to use the  transction "KKRC"?
    Please explain me all the steps to be required.
    Thanks in advance!

    hi..
    http://help.sap.com/bp_bl603/BBLibrary/Documentation/181_BPP_EN_BR.doc
    KKBC HOE Transaction code Error
    Regards

Maybe you are looking for

  • PL/SQL error in JSP Reports

    Hi, I am trying to create a simple PL/SQL in a JSP report thar returns a column's value as below: Return :RES_COM_CODE ; I am getting an error as below: javax.servlet.jsp.JspException: REP-0724: Cannot get the value of Column 'RES_COM_CODE' here. REP

  • "Read Only" external hard drive?

    my seagate expansion external hard drive is all of a sudden "read only". it will not let me edit any files using my macbook pro. How do you change this? I have veiwed and edited files from this external drive using my mac before and not had any probl

  • Interactive PDF's

    Hello all, I am using a Blackberry Z10 and need to fill in an Interactive PDF (generated by SAP). It does not seem that the native Adobe Reader works for this.  Does any one have any ideas, options, apps that would allow me to fill in Interactive PDF

  • I Tunes won't connect to the internet

    When I click the I Tunes Store button in the I Tunes application for Windows 8.1 I get an error message - An unknown error occurred (-3212). Make sure your network Connection is active and try again. My internet works fine (I'm submitting this from t

  • Service PR generated through maintenance order

    Hi Friends, I am creating a maintenance order in which i am using external services(Control key PM03). The PR is getting generated, but delivery date in the PR is not editable or modifiable its greyed out. How to make the field editable. please advis