Question for BDC about tcode VK12

Hi, everyone, i encounter a problem when i use BDC to transfer data about vk12.
when i usd BDC to transfer value to the field F001,F002, F003 and F004-LOW then click run, the detail record are be chosed and displayed, then i must chose them and click delete. if there is only one record accord to the condition, it is easy to deal with it, but, if there are more than one record, what should i do the deal with the detail records, especially how to deal with it dynamicly acoording to the condition.
for example:
when i enter first condition through BDC .(see the first record)
ZPR0|X||RENT-L1-M03||100001||1000|00|01.01.2008|
the condition value are: zpro, x , rent-l1-m03, 100001,1000, 00 ,01.01.2008 and then i will find only detail record according to this condition, it like this:
RENT-L1-M03
2,000.12
sgd
1
ea
01.01.2008
31.12.9999
then flag this detail record and click delete.it is successful
when i enter second condition through BDC .(see the second record)
ZPR0
X
RENT-L1-M00
100021
1000
00
01.01.2008
the condition value are: zpro, x , rent-l1-m00, 100021,1000, 00 ,01.01.2008 and then i will find three detail records according to this condition,  like this:
|RENT-L1-M00|2,000.12|sgd|1|ea|01.01.2008|31.12.9999
|RENT-L1-M00|2,000|sgd|1|ea|01.01.2008|31.12.9999
|RENT-L1-M00|1,000|sgd|1|ea|01.01.2008|31.12.9999
then if i use the same BDC  record program to deal with this detail record, it is deal with only one detail record, so what should i do to deal with the others.(because all of them should be flaged and deleted)

Just check if you have a Select All button when you select the record you want to delete.

Similar Messages

  • A question for document about 10.2.0.4 on Windows Server 2008

    Hi
    This link - http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b14264/toc.htm#BAB - describes how to install Oracle Database on Windows Vista and Windows Server 2008.
    But I have a question about this document.
    According to the document, the first step is "Install Oracle Database using the 10.2.0.3 media."
    But I don't know which 10.2.0.3 media I should use. Is it this one?
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html
    Thanks.

    Hi all
    There are some patches for oracle 10.2.0.3. After I installed 10.2.0.3, I should apply these patches, such as p5746875_10203_GENERIC.zip, p5846376_10203_WINNT.zip, p5916257_10203_WINNT.zip.
    My question is: should I apply these patches before I install 10.2.0.4 on Windows Server 2008?
    Usually I think these patches for 10.2.0.3 should be integrated into 10.2.0.4, so I don't need to apply these patches, just install 10.2.0.4.
    But after I installed 10.2.0.4, I use opatch command to check the patches, I didn't find these patches included in 10.2.0.4. Also I didn't find these patches in 10.2.0.4 patch list...
    Is there anyone can help me? Thanks!

  • Easy questions for Pro about ASM block size

    hi
    how can we change DB_BLOCK_SIZE in ASM (while instalation)
    we have a default of 4096

    As for databases 'later' is not possible. I'm not sure what happens when you choose another blocksize at creation time. ASM blocksize is only for metadata,it's not related to the actual database data (having the database blocksize) stored in ASM diskgroups.
    These are the blocks which are used for extent maps in shared pool.o you dont need to worry about this blocksize difference.
    here is the actul link that i copied over from(above)
    ASM instance's block size

  • Question for romko23 about getting A.S.D

                             Hello i am ,romko 23 told me to contact him about apple asd for my powermac g5 early 2005 dual 2.7.I replaced my processors and overhauled my l.q.s but now i was told i need the apple asd.How could i get a copy of your asd ?
                                                                                                                   Thank You,
                                                                                                                       connet123896

    Here I am! Given the length and size of this file I will be unable to send it via email.. Leave me your email and I can see what I can do.
    Romko.

  • Question for Turingtest2 about previous instructions

    Hi Turingtest2,
    I tried to follow your instructions to another poster about linking a  new computer to an iTunes library on an external hard drive.  Unfortunately, I've done something wrong and now neither old or new computer will link to the library.  All my files are still on the external hard drive, but I cannot get either computer to link to them!  I'm not very good with computers, and I'm very frustrated (as I've spent 3 hrs on this).  Can you please try to walk me through reconnecting to my external hard drive files?  I am using Windows 7 on the new computer.

    I recently had an eye examination done, and it came back perfect. This is the previous monitor I used: http://www.walmart.com/ip/AOC-931SWL/13890785
    I get that it's completely different, but it didn't cause me any eye strain at all. I also tried calibrating the color, right now it's really warm, with less blue LEDs, and it's easy on the eyes, but it's definitely, still a problem.
    I know that some people don't have any problem with them at all, but some others are having the same issue, but I am just trying to figure out if what Apple has done with the change in the new iMac is their solution to the problem.

  • Question for Carl about Show/Hide Detail Rows

    Carl,
    In your example http://htmldb.oracle.com/pls/otn/f?p=11933:1:2549476012987299
    is there a way to modify the javascript code to include multiple variables being passed in, vs just the pID being passed in?
    How can I pass the additional variables below:
    function ShowHideDetailRow(pThis, pTable, pTR, pID,pID2, pID3){
    var l_Detail = 'detail' + pID; //how can I append pID2 and pID3 here?
    var l_NumCells = pTR.cells.length;
    if (pTR.rowIndex == pTable.rows.length - 1 ||
    pTable.rows[pTR.rowIndex+1].className != "detail")
    gURL = 'f?p=&APP_ID.:12:'+html_GetElement('pInstance').value+'::NO:RP:P12_SID:'+ pID;//how can I append pID2 and pID3 here?

    Hello,
    Sure just add the parameters in like you have shown javascript is very lenient when it comes to adding parameters.
    And as for the URL all you have to do is follow the APEX URL syntax.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    Carl

  • Question for Jacob about inventory

    Jacob, are you able to see if a store has gotten more inventory today?  The list seems to have disappeared.  I went into my store #821 last night and they had only received 5.  I'm wondering if they got more today, as the forums seem to be much more positive overall than they were yesterday. 
    Any idea?
    Thanks for all you've been doing today...and of course every other facet of your job stopped because of the iphone4!  Apple runs the world!
    Solved!
    Go to Solution.

    Hi, beforeyougo, thanks for the feedback!
    I won't be able to check inventory today.  The list went away because all stores should be getting some so it would just be list of "yes." 
    It seems that most stores are getting more shipments today so check with your store tonight to see if they have a phone for you.  Most pre-orders should be filled.
    Thanks!
    Jacob|Web Planner | Best Buy® Corporate

  • Question for Shane about Excel file

    Hi Shane,
    I was reading one of your blogs, and you mentioned that larry jordan has an excel file for timecode? Can you please give me the link where I can find that? I couldn't find it on his site.
    Thanks...

    Don't worry, I found it on his site, under Goodies...
    Thanks though !

  • Question for you Deathstalker

    Hi Richard.
    I have a question for you about the MSI K7N2G-LISR (NVIDIA nForce2 IGP) motherboard we were discussing.
    If this board has integrated graphics, why do I need a video card? I had someone else ask me the same thing but I didn't know the answer.
    Thanks
    Mike

    Hi Mike, I not sure if I should step in and put in this reply, but couldn't stop myself not to as this is quite important.
    Mobos that comes with on board/integrated/shared Memory Graphics usually dun ends up giving you good framerates and graphics details. I have a friend who spent Sin 2000 over dollars to D.I.Y a creative slix look alike com with on board graphics has regretted not getting a proper mobo with AGP slot. The graphics that are produced on his com are like running a TNT2 Riva 32MB card for games like warcraft 3 and any latest 1st person shooting games... juz imagining it...
    I'm the type of person who are more for graphics and smoothness of gameplays and details of model as I do some 3D designs and picture designing. I juz dun understand why there are still people going for onboard graphics and complaining about poor fps produced which they should have blame themselves for it X( ... It's good that you've pointed out your doubts on that...
    All the Best...  :D !!!

  • Question for Forum Hosts

    Sorry, this is a question for you about how this forum works or what options I am supposed to use, versus being a new problem... I couldn't find a "Contact Us" link to get this question to you any other way.
    I posted a message (marked as a question), "Wireless-G Card causes Tecra 730CDT to Hang," on February 14th. I got a reply from "Quad" and I then replied to that reply (and marked it "still not answered"). The now 3-part message was on the main forum list for about 1/2 day and then it disappeared from it completely. I can do a search and find the original message and the 2 replies, but they are not on the main list.
    I can't figure out why it is not on the main forum list. Did I do or say something wrong so it was dropped from the list? Did I fail to do some step or check some box that is required before it can return to the list?
    I really would like the original message and replies back on the main forum list, as I still have the same problem and am hoping someone will see it and provide a solution to my problem. Please advise.
    Thanks,
    [email protected]

    Hi Ivan,
    First, thank you very much for clearing up what I thought was a mystery of my disappearing posting. Basically, I thought my problem belonged in the TE and Tecra Series forum (what I thought of as the "main page") and was dismayed when I couldn't find it in there. Yes, the Wireless Board is definitely the more appropriate spot.
    Secondly, thank you too for your opinion on my attempt at jamming Wireless-G onto my old laptop. I am seeing that you and Quad must be correct... the fact that the 730CDT works so well with my 10/100 wired card made me feel it could handle everything.
    I have to admit I have never tried slower Wireless-B. Technology has moved so fast and prices have dropped so much that it was cheaper to buy a brand new boxed kit (router and card) for Wireless-G than it was to buy an old Wireless-B set up... I got caught up in getting the best deal instead of making the best technology match.
    I will close this question on "where's my posting?" but will leave the original "730CDT Hang" posting alive for awhile longer.
    Many thanks again,
    Wayne

  • Got a question for all you peeps dos anyone know about i phones i have a i phone 3gs which i got unlocked i did a master reset or summin and just had a pic of apple so i plugged it in i tunes downloaded and it now says no service at the top of phone and i

    got a question for all you peeps
    dos anyone know about i phones i have a i phone 3gs which i got unlocked i did a master reset or summin and just had a pic of apple so i plugged it in i tunes downloaded and it now says no service at the top of phone and i tunes says invalid sim i put the correct sim in it used to be locked too and still says same pls any one with ideas?

    hi sorry what happoned is that ages ago i brought a i phone 3gs on 02 network i went to a sml phone shop and payed for them to unlock it. it has been fine till yesterday when i went to reset it from the phone it then turned off and came back on just just an image of a apple for about an hour so i connected to i tunes and it said downloading software after another hr it had finished but then i tunes said in had to insert a sim so i had to un plug the phone from laptop while i did this i put my orange sim in and the i phone said where do i live and had to connect to a internet connection but all the time saying no service where the signal bar is and then says activating i phone it took a few min and said couldnt finish it bec of the signal and to connect it to i tunes to do it so i connected it to itunes and i tunes just keeps saying invalid sim so i took my orange sim out and put a 02 sim in and is still saying invalid sim on itunes?

  • Multiple questions on BDC

    Hi everyone
    I have multiple questions on BDC.Would u please answer them with explanations ASAP...
    1. How do you create a batch input session for a transaction?
    a) We create a bdc and use ‘call transaction’ in background mode.
    b) We create a bdc and use ‘call transaction’ in error mode.
    c) We create a bdc and use ‘bdc_insert’ for the transaction.
    d) None of the above.
    2. What is the alternative to batch input session?
    a) Load module
    b) Call transaction
    c) BAPI
    d) Idoc segment
    3. Which SAP table stores the BDC session queue information?
    a) APQD
    b) APQL
    c) APQQ
    d) APQI
    4. Which program can be used to release BDC sessions within a job?
    a) RSBDCSUB
    b) RSBDCJOB
    c) RSSUBBDC
    d) BDCRECXX
    5. Which one of the following is output to the job log when included in an ABAP program running in the background?
    a) Write statements
    b) message statements
    c) report parameters
    d) Submit statements
    6. Your program specs call for you to read the first 10 records from a text file (fname1), and write them out to another text file (fname2).
    Which block of code will accomplish the result desired in the above scenario?
    a) Open dataset fname2 for input in text mode.
    Do 10 times.
    Read dataset fname1 into hold_var.
    Transfer hold_var to fname2.
    Enddo.
    b) open file fname1 for output.
    Open file fname2 for input.
    Read dataset fname1 into hold_var 10 times.
    Transfer hold_var to fname2.
    c) open file fname1 for input.
    Open file fname2 for output.
    Do 10 times.
    Read file fname1 into hold_var.
    Transfer hold_var into fname2.
    Enddo.
    d) open dataset fname1 for input in text mode.
    Open dataset fname2 for output in text mode.
    Do 10 times.
    Read fname1 into hold_var.
    Write hold_var to fname2.
    Enddo.
    7. sy-dynpro is
    a) screen no
    b) program
    c) table
    d) field name
    8. Which of the following are NOT correct usage of BDC_cursor?
    a) To position the cursor on a particular field.
    <bdc_tab>-FNAM = 'BDC_CURSOR'.
    <bdc_tab>-FVAL = &#8216;fieldx&#8217; .
    b) To position the cursor on a particular field.
    <bdc_tab>-FNAM = &#8216;fieldx&#8217;
    <bdc_tab>-FVAL = 'BDC_CURSOR'. .
    c) For fifth row of Table control
    <bdc_tab>-FVAL = 'fieldx(5)'.
    d) For fifth row of Table control
    <bdc_tab>-FNAM = 'BDC_CURSOR(5) '.
    9. In case of background processing of a BI session, which authorization is checked?
    a) Developer of the program that schedules BI Session
    b) User who executes the BI session
    c) User who executes the program that schedules BI Session
    d) User ID that is passed to the BDC_OPN_GROUP function module inside the calling program
    10. Which of the following are TRUE about Transaction Recorder?
    a) Transaction Code is SHDB
    b) Transaction Code is SM35
    c) It can generate ABAP code for the BDC program automatically
    d) It can generate ABAP code for the Call Transaction program automatically
    Regards,
    Pratibha

    Hi,
    1) C We create a bdc and use ‘bdc_insert’ for the transaction
    2) b) Call transaction
    3. d) APQI
    4. a) RSBDCSUB
    5. b) message statements
    6. d) open dataset fname1 for input in text mode.
    Open dataset fname2 for output in text mode.
    Do 10 times.
    Read fname1 into hold_var.
    Write hold_var to fname2.
    Enddo.
    7. a) screen no
    8.  b) To position the cursor on a particular field.
    <bdc_tab>-FNAM = ‘fieldx’
    <bdc_tab>-FVAL = 'BDC_CURSOR'. .
    9.b) User who executes the BI session (or)
    c) User who executes the program that schedules BI Session
    10.  a) Transaction Code is SHDB
    c) It can generate ABAP code for the BDC program automatically
    Regards

  • I would like to add new scale quantity for a material in VK12 transaction

    I wouls like to add new scale quantity to already existed material in VK12 tcode.
    Here I need to  update large amount of data.For that i can use the LSMW (BDC recording) for VK12.
    But in the BDC recording in VK12 tcode the first selection screen was not captured.That is the material number,SORG and DIST_CHA is not captured in recording.
    Could anybody help me is there any standard LSMW for this transaction or how to get these fields in BDC recording?

    Mohammad,
    Its very much possible to add a new link on the logon page by customizting logon par file.
    Please follow these procedure:-
    1. Downlaod the latest Par file from portal under System Admin -> Support
    2. Upload the downloaded file into NWDS in EP perspectibe and add required jars in Java Buil path and lb folder
    3.Navigate to the folder PORTAL-INF -and open the jsp file umelogonpages.jsp to cutomize.
    4. Just add the following sample codein jsp to refer a website. Please this code where ever you want on the logon page as per your requirement.
    <a href="http://www.google.comu>My Google></a>
    5. Deploy the modified component into EP.
    Please let me know if youe need more details.
    Ram

  • Please provide me material for bdc

    Hi everyone,
    can you please provide me some stuff for bdc, actually i am working on bdc for mm01 , so plz send me study materials and if you have any scenario then please forward me.
    Thanks & Regards,
    Vimarsh B.

    Hi
    Hope it will help you.
    Reward if help.
    BATCH DATA COMMUNICATION
    About Data Transfer In R/3 System
    When a company decides to implement the SAP R/3 to manage business-critical data, it usually does not start from a no-data situation. Normally, a SAP R/3 project comes into replace or complement existing application.
    In the process of replacing current applications and transferring application data, two situations might occur:
    u2022 The first is when application data to be replaced is transferred at once, and only once.
    u2022 The second situation is to transfer data periodically from external systems to SAP and vice versa.
    u2022 There is a period of time when information has to be transferred from existing application, to SAP R/3, and often this process will be repetitive.
    The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called u201Cbatch inputu201D or u201Cbatch data communicationu201D.
    1. SESSION METHOD
    2. CALL TRANSACTION
    3. DIRECT INPUT
    Advantages offered by BATCH INPUT method:
    1. Can process large data volumes in batch.
    2. Can be planned and submitted in the background.
    3. No manual interaction is required when data is transferred.
    4. Data integrity is maintained as whatever data is transferred to the table is through transaction. Hence batch input data is submitted to all the checks and validations.
    To implement one of the supported data transfers, you must often write the program that exports the data from your non-SAP system. This program, known as a u201Cdata transferu201D program must map the data from the external system into the data structure required by the SAP batch input program.
    The batch input program must build all of the input to execute the SAP transaction.
    Two main steps are required:
    u2022 To build an internal table containing every screen and every field to be filled in during the execution of an SAP transaction.
    u2022 To pass the table to SAP for processing.
    Prerequisite for Data Transfer Program
    Writing a Data Transfer Program involves following prerequisites:
    Analyzing data from local file
    Analyzing transaction
    Analyzing transaction involves following steps:
    u2022 The transaction code, if you do not already know it.
    u2022 Which fields require input i.e., mandatory.
    u2022 Which fields can you allow to default to standard values.
    u2022 The names, types, and lengths of the fields that are used by a transaction.
    u2022 Screen number and Name of module pool program behind a particular transaction.
    To analyze a transaction::
    u2022 Start the transaction by menu or by entering the transaction code in the command box.
    (You can determine the transaction name by choosing System u2013 Status.)
    u2022 Step through the transaction, entering the data will be required for processing your batch input data.
    u2022 On each screen, note the program name and screen (dynpro) number.
    (dynpro = dyn + pro. Dyn = screen, pro = number)
    u2022 Display these by choosing System u2013 Status. The relevant fields are Program (dynpro) and Dynpro number. If pop-up windows occur during execution, you can get the program name and screen number by pressing F1 on any field or button on the screen.
    The technical info pop-up shows not only the field information but also the program and screen.
    u2022 For each field, check box, and radio button on each screen, press F1 (help) and then choose Technical Info.
    Note the following information:
    - The field name for batch input, which youu2019ll find in its own box.
    - The length and data type of the field. You can display this information by double clicking on the Data Element field.
    u2022 Find out the identification code for each function (button or menu) that you must execute to process the batch-input data (or to go to new screen).
    Place the cursor on the button or menu entry while holding down the left mouse button. Then press F1.
    In the pop-up window that follows, choose Technical info and note the code that is shown in the Function field.
    You can also run any function that is assigned to a function key by way of the function key number. To display the list of available function keys, click on the right mouse button. Note the key number that is assigned to the functions you want to run.
    Once you have program name, screen number, field name (screen field name), you can start writing.
    DATA TRANSFER program.
    Declaring internal table
    First Integral Table similar to structure like local file.
    Declaring internal table like BDCDATA
    The data from internal table is not transferred directly to database table, it has to go through transaction. You need to pass data to particular screen and to particular screen-field. Data is passed to transaction in particular format, hence there is a need for batch input structure.
    The batch input structure stores the data that is to be entered into SAP system and the actions that are necessary to process the data. The batch input structure is used by all of the batch input methods. You can use the same structure for all types of batch input, regardless of whether you are creating a session in the batch input queue or using CALL TRANSACTION.
    This structure is BDCDATA, which can contain the batch input data for only a single run of a transaction. The typical processing loop in a program is as follows:
    u2022 Create a BDCDATA structure
    u2022 Write the structure out to a session or process it with CALL TRANSACTION USING; and then
    u2022 Create a BDCDATA structure for the next transaction that is to be processed.
    Within a BDCDATA structure, organize the data of screens in a transaction. Each screen that is processed in the course of a transaction must be identified with a BDCDATA record. This record uses the Program, Dynpro, and Dynbegin fields of the structure.
    The screen identifier record is followed by a separate BDCDATA record for each value, to be entered into a field. These records use the FNAM and FVAL fields of the BDCDATA structure. Values to be entered in a field can be any of the following:
    u2022 Data that is entered into screen fields.
    u2022 Function codes that are entered into the command field. Such function codes execute functions in a transaction, such as Save or Enter.
    The BDCDATA structure contains the following fields:
    u2022 PROGRAM: Name of module pool program associated with the screen. Set this field only for the first record for the screen.
    u2022 DYNPRO: Screen Number. Set this field only in the first record for the screen.
    u2022 DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen. (Reset to u2018 u2018 (blank) for all other records.)
    u2022 FNAM: Field Name. The FNAM field is not case-sensitive.
    u2022 FVAL: Value for the field named in FNAM. The FVAL field is case-sensitive. Values assigned to this field are always padded on the right, if they are less than 132 characters. Values must be in character format.
    Transferring data from local file to internal table
    Data is uploaded to internal table by UPLOAD of WS_UPLOAD function.
    Population of BDCDATA
    For each record of internal table, you need to populate Internal table, which is similar to BDCDATA structure.
    All these five initial steps are necessary for any type of BDC interface.
    DATA TRANSFER program can call SESSION METHOD or CALL TRANSACTION. The initial steps for both the methods are same.
    First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.
    SESSION METHOD
    About Session method
    In this method you transfer data from internal table to database table through sessions.
    In this method, an ABAP/4 program reads the external data that is to be entered in the SAP System and stores the data in session. A session stores the actions that are required to enter your data using normal SAP transaction i.e., Data is transferred to session which in turn transfers data to database table.
    Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.
    When the program has finished generating the session, you can run the session to execute the SAP transactions in it. You can either explicitly start and monitor a session or have the session run in the background processing system.
    Unless session is processed, the data is not transferred to database table.
    BDC_OPEN_GROUP
    You create the session through program by BDC_OPEN_GROUP function.
    Parameters to this function are:
    u2022 User Name: User name
    u2022 Group: Name of the session
    u2022 Lock Date: The date on which you want to process the session.
    u2022 Keep: This parameter is passed as u2018Xu2019 when you want to retain session after
    processing it or u2018 u2018 to delete it after processing.
    BDC_INSERT
    This function creates the session & data is transferred to Session.
    Parameters to this function are:
    u2022 Tcode: Transaction Name
    u2022 Dynprotab: BDC Data
    BDC_CLOSE_GROUP
    This function closes the BDC Group. No Parameters.
    Some additional information for session processing
    When the session is generated using the KEEP option within the BDC_OPEN_GROUP, the system always keeps the sessions in the queue, whether it has been processed successfully or not.
    However, if the session is processed, you have to delete it manually. When session processing is completed successfully while KEEP option was not set, it will be removed automatically from the session queue. Log is not removed for that session.
    If the batch-input session is terminated with errors, then it appears in the list of INCORRECT session and it can be processed again. To correct incorrect session, you can analyze the session. The Analysis function allows to determine which screen and value has produced the error. If you find small errors in data, you can correct them interactively, otherwise you need to modify batch input program, which has generated the session or many times even the data file.
    CALL TRANSACTION
    About CALL TRANSACTION
    A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program by
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>
    Messages into <MSGTAB>.
    Parameter u2013 1 is transaction code.
    Parameter u2013 2 is name of BDCTAB table.
    Parameter u2013 3 here you are specifying mode in which you execute transaction
    A is all screen mode. All the screen of transaction are displayed.
    N is no screen mode. No screen is displayed when you execute the transaction.
    E is error screen. Only those screens are displayed wherein you have error record.
    Parameter u2013 4 here you are specifying update type by which database table is updated.
    S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.
    A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).
    Parameter u2013 5 when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:
    1. Tcode: Transaction code
    2. Dyname: Batch point module name
    3. Dynumb: Batch input Dyn number
    4. Msgtyp: Batch input message type (A/E/W/I/S)
    5. Msgspra: Batch input Lang, id of message
    6. Msgid: Message id
    7. MsgvN: Message variables (N = 1 - 4)
    For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure).
    Steps for CALL TRANSACTION method
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. UPLOAD or WS_UPLOAD function to upload the data from local file to itab. (Considering file is local file)
    4. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>.
    Refresh BDCTAB.
    Endloop.
    (To populate BDCTAB, You need to transfer each and every field)
    The major differences between Session method and Call transaction are as follows:
    SESSION METHOD CALL TRANSACTION
    1. Data is not updated in database table unless Session is processed. Immediate updation in database table.
    2. No sy-subrc is returned. Sy-subrc is returned.
    3. Error log is created for error records. Errors need to be handled explicitly
    4. Updation in database table is always synchronous Updation in database table can be synchronous Or Asynchronous.
    Error Handling in CALL TRANSACTION
    When Session Method updates the records in database table, error records are stored in the log file. In Call transaction there is no such log file available and error record is lost unless handled. Usually you need to give report of all the error records i.e., records which are not inserted or updated in the database table. This can be done by the following method:
    Steps for the error handling in CALL TRANSACTION
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. Internal table BDCMSG like BDCMSGCOLL
    4. Internal table similar to Ist internal table
    (Third and fourth steps are for error handling)
    5. UPLOAD or WS_UPLOAD function to upload the data from the local file to itab. (Considering file is local file)
    6. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tr.code> using <Bdctab>
    Mode <A/N/E>
    Update <S/A>
    Messages <BDCMSG>.
    Perform check.
    Refresh BDCTAB.
    Endloop.
    7 Form check.
    IF sy-subrc <> 0. (Call transaction returns the sy-subrc if updating is not successful).
    Call function Format_message.
    (This function is called to store the message given by system and to display it along with record)
    Append itab2.
    Display the record and message.
    DIRECT INPUT
    About Direct Input
    In contrast to batch input, this technique does not create sessions, but stores the data directly. It does not simulate the online transaction. To enter the data into the corresponding database tables directly, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism. However, to be able to activate the restart mechanism, direct input programs must be executed in the background only. Direct input checks the data thoroughly and then updates the database directly.
    You can start a Direct Input program in two ways;
    Start the program directly
    This is the quickest way to see if the program works with your flat file. This option is possible with all direct input programs. If the program ends abnormally, you will not have any logs telling you what has or has not been posted. To minimize the chance of this happening, always use the check file option for the first run with your flat file. This allows you to detect format errors before transfer.
    Starting the program via the DI administration transaction
    This transaction restarts the processing, if the data transfer program aborts. Since DI document are immediately posted into the SAP D/B, the restart option prevents the duplicate document posting that occurs during a program restart (i.e., without adjusting your flat file).
    Direct input is usually done for standard data like material master, FI accounting document, SD sales order and Classification for which SAP has provided standard programs.
    First time you work with the Direct Input administration program, you will need to do some preparation before you can transfer data:
    - Create variant
    - Define job
    - Start job
    - Restart job
    Common batch input errors
    - The batch input BDCDATA structure tries to assign values to fields which do not exist in the current transaction screen.
    - The screen in the BDCDATA structure does not match the right sequence, or an intermediate screen is missing.
    - On exceptional occasions, the logic flow of batch input session does not exactly match that of manual online processing. Testing the sessions online can discover by this.
    - The BDCDATA structure contains fields, which are longer than the actual definition.
    - Authorization problems.
    RECORDING A BATCH INPUT
    A B recording allows you to record a R/3 transaction and generate a program that contains all screens and field information in the required BDC-DATA format.
    You can either use SHDB transaction for recording or
    SYSTEM ? SERVICES ? BATCH INPUT ? EDIT
    And from here click recording.
    Enter name for the recording.
    (Dates are optional)
    Click recording.
    Enter transaction code.
    Enter.
    Click Save button.
    You finally come to a screen where, you have all the information for each screen including BDC_OKCODE.
    u2022 Click Get Transaction.
    u2022 Return to BI.
    u2022 Click overview.
    u2022 Position the cursor on the just recorded entry and click generate program.
    u2022 Enter program name.
    u2022 Click enter
    The program is generated for the particular transaction.
    BACKGROUND PROCESSING
    Need for Background processing
    When a large volume of data is involved, usually all batch inputs are done in background.
    The R/3 system includes functions that allow users to work non-interactively or offline. The background processing systems handle these functions.
    Non-interactively means that instead of executing the ABAP/4 programs and waiting for an answer, user can submit those programs for execution at a more convenient planned time.
    There are several reasons to submit programs for background execution.
    u2022 The maximum time allowed for online execution should not exceed 300 seconds. User gets TIMEOUT error and an aborted transaction, if time for execution exceeds 300 seconds. To avoid these types of error, you can submit jobs for background processing.
    u2022 You can use the system while your program is executing.
    This does not mean that interactive or online work is not useful. Both type of processing have their own purposes. Online work is the most common one entering business data, displaying information, printing small reports, managing the system and so on. Background jobs are mainly used for the following tasks; to process large amount of data, to execute periodic jobs without human intervention, to run program at a more convenient, planned time other than during normal working hours i.e., Nights or weekends.
    The transaction for background processing is SM36.
    Or
    Tools ? Administration ? Jobs ? Define jobs
    Or
    System ? services ? Jobs
    Components of the background jobs
    A job in Background processing is a series of steps that can be scheduled and step is a program for background processing.
    u2022 Job name. Define the name of assigned to the job. It identifies the job. You can specify up to 32 characters for the name.
    u2022 Job class. Indicates the type of background processing priority assigned to the job.
    The job class determines the priority of a job. The background system admits three types of job classes: A B & C, which correspond to job priority.
    u2022 Job steps. Parameters to be passed for this screen are as follows:
    Program name.
    Variant if it is report program
    Start criteria for the job: Option available for this are as follows:
    Immediate - allows you to start a job immediately.
    Date/Time - allows you to start a job at a specific name.
    After job - you can start a job after a particular job.
    After event - allows you to start a job after a particular event.
    At operation mode - allows you to start a job when the system switches to a particular operation mode.
    Defining Background jobs
    It is two step process: Firstly, you define the job and then release it.
    When users define a job and save it, they are actually scheduling the report i.e., specifying the job components, the steps, the start time.
    When users schedule program for background processing, they are instructing the system to execute an ABAP/4 report or an external program in the background. Scheduled jobs are not executed until they are released. When jobs are released, they are sent for execution to the background processing system at the specified start time. Both scheduling and releasing of jobs require authorizations.
    HANDLING OF POP UP SCREEN IN BDC
    Many times in transaction pop up screen appears and for this screen you donu2019t pass any record but some indication to system telling it to proceed further. For example: The following screen
    To handle such screen, system has provided a variable called BDC_CURSOR. You pass this variable to BDCDATA and process the screen.
    Usually such screen appears in many transactions, in this case you are just passing information, that YES you want to save the information, that means YES should be clicked. So you are transferring this information to BDCDATA i.e., field name of YES which is usually SPOT_OPTION. Instead of BDC_OKCODE, you are passing BDC_CURSOR.
    BDC_CURSOR is also used to place cursor on particular field.
    AN EXAMPLE WITH SESSION METHOD
    Following program demonstrates how data is passed from flat file to SAP transaction and further to database table by using SESSION method.
    The transaction is TFBA (to change customer).
    A simple transaction where you are entering customer number on first screen and on next screen data is displayed for the particular customer number. Field, which we are changing here, are name and city. When you click on save, the changed record gets saved.
    Prerequisite to write this BDC interface as indicated earlier is:
    1. To find screen number
    2. To find screen field names, type of the field and length of the field.
    3. To find BDC_OKCODE for each screen
    4. Create flat file.
    Flat file can be created in your hard disk as follows:
    1 Vinod   Hyderabad
    2 Kavitha Secunderabad
    3 Kishore Hyderabad
    (Where 1st character field is Customer number, 2nd field is Customer name and 3rd field is City.)
    To transfer this data to database table SCUSTOM following interface can be used.
    REPORT DEMO1.
    Following internal table is to upload flat file.
    DATA: BEGIN OF ITAB OCCURS 0,
    ID(10),
    NAME(25),
    CITY(25),
    END OF ITAB.
    *Following internal table BDCDATA is to pass date from internal table to session.
    DATA: BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    Variables
    DATA: DATE1 LIKE SY-DATUM. DATE1 = SY-DATUM - 1. u201C This is for Hold Date
    To upload flat file to internal table.
    CALL FUNCTION UPLOAD
    EXPORTING
    FILE NAME = u2018C:\FF.TXTu2019
    FILE TYPE = u2018ASCu201D
    TABLES
    DATA_TAB = ITAB
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    OTHERS = 6.
    If sy-subrc = 0.
    Calling Function to Create a Session
    CALL FUNCTION u2018BDC_OPEN_GROUPu2019
    EXPORTING
    CLIENT = SY-MANDT
    GROUP = u2018POTHURIu2019
    HOLDDATE = DATE1
    KEEP = u2018Xu2019
    USER = SY-UNAME
    EXCEPTIONS
    CLIENT_INVALID = 1
    DESTINATION_INVALID = 2
    GROUP_INVALID = 3
    GROUP_IS_LOCKED = 4
    HOLDDATE_INVALID = 5
    INTERNAL_ERROR = 6
    QUEUE_ERROR = 7
    RUNNING = 8
    SYSTEM_LOCK_ERROR = 9
    USER_INVALID = 10
    OTHERS = 11.
    If sy-subrc = 0.
    *-- MAIN Logic--
    LOOP AT ITAB
    PERFORM GENERATE_DATA. u201C Populating BDCDATA Table
    CALL FUNCTION u2018BDC_INSERTu2019
    EXPORTING
    TCODE = u2018TFBAu2019
    TABLES
    DYNPROTAB = BDCTAB
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 6
    OTHERS = 7.
    REFRESH BDCTAB
    ENDLOOP.
    Calling function to close the session
    CALL FUNCTION u2018BDC_CLOSE_GROUPu2019
    EXCEPTIONS
    NOT_OPEN = 1
    QUEUE_ERROR = 2
    OTHERS = 3.
    Endif.
    Endif.
    *& Form GENERATE_DATA
    Create BDC Data
    FORM GENERATE_DATA
    Passing information for 1st screen on BDCDATA
    BDCTAB-PROGRAM = u2018SAPMTFBAu2019.
    BDCTAX-DYNPRO = 100.
    BDCTAP-DYNBEGIN = u2018Xu2019.
    APPEND BCDTAB.CLEAR BDCTAB.
    Passing field information to BDCDATA
    BDCTAB-FNAM = u2018SCUSTOM-IDu2019
    BDCTAB-FVAL = ITAB-ID.
    APPEND BDCTAB.CLEAR BDCTAB.
    Passing BDC_OKCODE to BDCDATA
    BDCTAB-FNAM = u2018BDC_OKCODEu2019.
    BDCTAB-FVAL = u2018/5u2019.
    APPEND BDCTAB.CLEAR BDCTAB.
    Passing screen information for next screen to BDCDATA
    BDCTAB-PROGRAM = u2018SAPMTFBAu2019.
    BDCTAB-DYNPRO = 200.
    BDCTAB-DYNBEGIN = u2018Xu2019.
    APPEND BDCTAB.CLEAR BDCTAB.
    Passing screen information to BDCDATA
    BDCTAB-FNAM = u2018SCUSTOM-NAMEu2019.
    BDCTAB-FVAL = ITAB-NAME.
    APPEND BDCTAB.CLEAR BDCTAB.
    Passing screen information to BDCDATA
    BDCTAB-FNAM = u2018SCUSTOM-CITYu2019.
    BDCTAB-FVAL = ITAB-CITY.
    APPEND BDCTAB.CLEAR BDCTAB.
    Passing BDC_OKCODE to BDCDATA
    BDCTAB-FNAM = u2018BDC_OKCODEu2019.
    BDCTAB-FVAL = u2018SAVEu2019.
    APPEND BDCTAB.CLEAR BDCTAB.
    ENDFORM. u201CGENERATE_DATA
    AN EXAMPLE WITH CALL TRANSACTION
    Same steps to be repeated for CALL TRANSACTION
    The only difference between the two types of interface is in Session method, you create session and store information about screen and data into session. When session is processed the data is transferred to database. While in CALL TRANSACTION, data is transferred directly to database table.
    REPORT DEMO1.
    Follow above Code till MAIN Logic. Even the Subroutine should be copied
    LOOP AT ITAB
    PERFORM GENERATE_DATA, u201CPopulating BDCDATA Table
    Call transaction u2018TFBAu2019 using BCDDATA Mode u2018Au2019 Update u2018Su2019.
    REFRESH BDCTAB
    ENDLOOP.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

Maybe you are looking for