How to put value of specific line number in BDC

Hi all,
I am working on a BDC (MI04)which has 3 fields as header:
Document Number:
Date:
Fiscal Year.
After entering I get a screen having default Material Number, its description and its serial number. There is one field named QTY where I need to push the value through BDC.
But the issue is that I am not able to reach to that Material Code to push the qty value. I am getting the Material Code and its serial number in the text file from user.
May some times the given material code in on the NEXT PAGE (P+). So dont know how to go to the next page and push the qty in front of the correct material code..
Please help. Its very very urgent.
Thanks in Advance.
-=Maddu=-

Try something like
perform bdc_dynpro      using 'SAPMM07I' '0731'.
perform bdc_field       using 'BDC_CURSOR'
                              'ISEG-ERFMG(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=KLA'. " Menu goto/position
perform bdc_dynpro      using 'SAPMM07I' '1701'.
perform bdc_field       using 'BDC_CURSOR'
                              'RM07I-ZEILE'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENT2'.
perform bdc_field       using 'RM07I-ZEILE'
                              '8'. " give the "iseg-zeile" of the record to fill
perform bdc_dynpro      using 'SAPMM07I' '0731'.
perform bdc_field       using 'BDC_CURSOR'
                              'ISEG-ERFMG(01)'. " fill line 1 displayed
Regards

Similar Messages

  • Inserting text at a specific line number.

    Hello,
    My need is to insert specific text at a line number to be determined at run time. I know how to write to new files and append to existing ones, but I have not been able to find any documentation displaying how to traverse to a specific line in a text file. More specifically, of course I know how to use looping constructs, but I have seen no file I/O classes with a "skip line" method to get to my insertion point.
    Thank you.

    depending on the size of the files read them into a buffer use a loop to get to a specific point and write back to file.*
    Note I am sure there are many better ways to do this but this was the first thing that came to mind that would be easy for a new person to get.

  • Append text to a specific line number?

    How/can you append text to a specific line number?
    Thanks!

    1) read file, store each line seperately in a List or something
    2) append the text to the specific line
    3) write out all the lines back to the file
    You may be able to do something with RandomAccessFile as an alternative.

  • How can I see which specific page number I'm on in a Pages document?

    How can I see which specific page number I'm on in a Pages document? Thanks.

    Hi and thanks. Pages is V 5.0.1. And I've got OSX 10.9.1.
    I just tried what you suggested and while it works I'm looking for something like what a Word doc shows, where at the bottom of the screen you see - Pages: 1 of 37 (it's to the left of where a Word doc shows - Words: 7 of 9024).
    I recently switched to Pages and want to start using it all the time and get rid of Word.

  • SapScript, How do I read the current line number?

    I have sections of text - each in it's own element with an 'include' of the standard text.
    These sections are variable in size.
    All elements are in the MAIN window.
    I do not want a paragraph to split over two pages.
    How do I read the current line number within the sapscript before the section prints so I can issue a new-page command at the beginning of the paragraph?
    Thanks!

    Yes, that does work for paragraphs.
    If I have multiple elements to print from within a loop where "at first, at each and at last" each call the Sapscript funtcion write_form - how can I keep the whole section together.  protect/endprotect will keep each element together but not the group of elements.
    There must be a way to find the current line number.

  • How can we get the selected line number from JTextArea ?

    how can we get the selected line number from JTextArea ? and want to insert line/string given line number into JTextArea??? is it possible ?

    Praitheesh wrote:
    how can we get the selected line number from JTextArea ?
    textArea.getLineOfOffset(textArea.getCaretPosition());
    and want to insert line/string given line number into JTextArea??? is it possible ?
    int lineToInsertAt = 5; // Whatever you want.
    int offs = textArea.getLineStartOffset(lineToInsertAt);
    textArea.insert("Text to insert", offs);

  • How to reverse the AuC Specific Line Item?

    Hi Gurus,
    I am facing one issue while doing the AuC Reverse. Through T.Code -AIST  i had reverse the AuC line item. but i want to reverse the specific line item.E.g. if there are 10 AuC Assets ( No. 1,2,3.....10)for the same date and want to reverse the 4th and 6th AuC asset line item? how can i reverse this?
    Could you please suggest me to overcome this issue?
    Regards,
    Dhananjay R.

    by mistake raise ....

  • How to put values from selection screen to  ztable

    hi all,
    i have created a ztable.
    now i want to put data through se38.
    i have given 5 parameters in selection screen same as there in ztable.
    now if i put values in selection screen then it should put that values to my ztable .
    how can i put values into my ztable.
    i used insert but not workiing.

    Hi,
    Try this.
    TABLES : ztable.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : p_field1 TYPE field1_in_ztable,
                            p_field2 TYPE field2_in_ztable.
                            p_field3 TYPE field3_in_ztable.
                            p_field4 TYPE field4_in_ztable.
                            p_field5 TYPE field5_in_ztable.
    SELECTION-SCREEN:END OF BLOCK b1.
    DATA : itab TYPE TABLE ztable,
                 wa_itab TYPE ztable.
    AT SELECTION-SCREEN.
          MOVE p_field1 TO wa_itab-field1.
          MOVE p_field2 TO wa_itab-field2.
          MOVE p_field3 TO wa_itab-field3.
          MOVE p_field4 TO wa_itab-field4.
          MOVE p_field5 TO wa_itab-field5.
    INSERT ztable FROM wa_itab.
    IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 28, 2009 4:15 PM

  • SAPScript: How to INTENSITY in a specific line?

    Dears,
    In my forms i need to intensity the specific line of the window.
    Now I knew use
    /: BOX INTENSITY 10
    to intensity the whole window,           But how to intensity a specific line?
    Thanks a lot.
    Sincerely,
    Julie

    Hi,
    write a BOX statement in the SCRIPT at the position where you want to intensify.
    Suppose your window dimentions are
                                 Left margin: 2 CH
                                 Uppar margin: 10 LN
                                 Width      : 60 CH
                                 Height:  20 LN
    and you want to intensify at
                                 Left margin: 2 CH
                                 Uppar margin: 15 LN
                                 Width      : 60 CH
                                  Height:  1 LN
    write the box statement with above dimensions and intensity.
    Regards,
    Sandeep.

  • Q: how to put values of two VO in a search table that is dependent

    Hi
    my requirement is somehow complicated, it is as follows:
    i have an employeeEO and a DirectorEO with the corresponding employeeVO and DirectorVO i want to make a search on the two VOs but with one search table and one go button.
    I have put a query region then region using wisard for the EmployeeVO then add an item for the director with no view instance and no view attribute, now i don't know how to put the name of the director in DirectorVO according to the empID in EmployeeVO
    any help would be appriciated
    Thanks

    i have also put the following in the processRequest
    OATableBean employeeTable = (OATableBean)webBean.findChildRecursive("EmployeesVO1");
    OAMessageChoiceBean directorIdList = (OAMessageChoiceBean)employeeTable.findChildRecursive("Director");
    OAMessageStyledTextBean empIdList = (OAMessageStyledTextBean)employeeTable.findChildRecursive("EmpId");
    directorIdList.setListVOBoundContainerColumn(0, employeeTable,"empIdList");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("putDirector");
    but the problem is how then i can put the empId in the Am without a specific reference ??

  • How to assign value to specifically 2D table cell in DIAdem?

    Assume the 2D table dimension is 4*5, and I want to write value to (2,3) of the table cell and don't change the values in other cells. How should I do?
    Another question:
    How to hide the heading of a 2D table?
    Thanks for any reply!
    YangAfreet

    Hi YangAfreet,
    All tables in DIAdem VIEW and REPORT display the values in specific Channels in the Data Portal (or in rare cases the values of a global array variable).  So if you want to change the value of a particular cell in your table, you need to change the value of that particular cell in the data channel being displayed in that table column.  This you can do with the ChV() function in a VBScript, or you can change that value interactively in a VIEW table.
    Of course, if you're talking about a table in a SUDialog, then there is a way to address and edit individual table cells, but my guess is that this is not the sort of table you're talking about.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to find dynamically the current line number in the source file

    Is there a mechanism like __LINE__ and __FILE__ macro in C to get dynamically
    the current line number and file name of a source file?

    Don't know - but others have asked too. Have you searched the forum? For example:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=210496

  • How to put value in Ring

    I forgot how to input value into ring control. Could anyone tell me how?

    Programatically: Create a property node (right-click on the control) and select the Strings property. Write an array with all the names of the values to that property. If you need to update the item list often try holding the current array in a shift-register instead of reading the current one back using a read property...
    Manually: Right-click on the control and select add Item...
    MTO

  • How do I order a specific phone number

    Hello to all,
    Who can I contact to order a specific phone number for my new business? It'll be a local geographic landline where I live and operate, but I want to choose the number. Any direction or contact would be greatly appreciated.
    Many thanks
    Andy
    "Wishing everyone a very merry Christmas and a healthy and prosperous 2015" 

    you need to contact BT business this is a residential users forum try this link https://business.forums.bt.com/t5/Broadband-and-internet/bd-p/Broadband
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • How to put Value to a EditText.

    Hi Everyone,
    I am trying to update the value of a TextBox for example Sales Order Matrix, First Line's Quantity Field through a Function.
    Code Example:
            oForm = SBO_Application.Forms.Item(strFormUID)
            oItem = oForm.Items.Item("38")
            oMatrix = oItem.Specific
            oColumnQuantity = oMatrix.Columns.Item("11") 'Refers to the Quantity Column
            oCellTotal = oColumnTotal.Cells.Item(1) 'Refers to the First Row of the Matrix
            oEditTextTotal = oCellTotal.Specific
            oEditTextTotal.Value = "11.00"
    Now, the moment the last line (above) is executed SAP enters in an infinite loop and keeps coming to the last line (as I found in Debug mode).
    Please help, if possible with a code sample as how to update a value of a SAP form's TextBox.
    Thanks to all in advance.

    I have got the answer, pVal.InnerEvent = False

Maybe you are looking for

  • URL Hyperlink that wraps from line to line won't work in PDF

    What's going on with the hyperlink feature that I can't make my links work in the PDF (or in InDesign). I searched for this topic on here and found a couple things that I tried, but with no success. I am using a PC, InDesign CS2 and Acrobat 8. A coup

  • Customer-Specific Key Figure and MCI3 analysis report

    Hi, We have created a "Customer-Specific Key Figures" in customizing and mapped the key with value category. But this new defined key figure is not available in the report MCI3. How to get this figure in the analysis report MCI3 etc , i.e. how to upd

  • Can T61 run with ONLY external GPU (in dock)

    Hi all, I am one of those 'lucky; T61 owners with a defunct NVS140M video chipset.   I'm not sure exactly what happens to the chip when it fails, but I wonder whether it is just the same problem associated to PS3 Yellow Light of Death, i.e. the chip

  • Debug SAP script

    Hi Gurus, I need to debug SAP script. How can I do this? Thanks, Pavan Moderator message - Please search before asking - post locked Moderator message - Please see Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! before posting

  • How to create multiple thresholds?

    In the documentation for metrics it mentioned in GC you can specify multiple thresholds for a metric, but does not go into details of how to create such a metric. Can anyone help me on this, thanks!