How to  fill  fields in the script ..

Hai
I wanted to make sap script which have excise details .
It has total 17 fields .. the standard example is J_2i_rg1 is the standard sap form.
and program name is j_2irrg1 . my out put will also similar to this ..
my problem is how i have to fill all the filelds in custom script. and how to allign correctly .
Please let me know .... tell me step by   step procedure
Thankyou.
Regards
Harsha

Hi,
Are you copying the driver program and SAP print form from the standard one. If you are just making your custom form and not the driver program then you can directly use the data which is fetched by program.
For fetching extra info which is standard prog is not fetching you can make use of PERFORM command. Follow below link:-
[Perform_in_Script|http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm]
Alignment is done through the proper use of TABS. Refer below link for Alignment issues:-
[SAP_SCRIPT|http://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript]
Hope it helps.
Thanks,
Daya

Similar Messages

  • Reg:How to add fields to the scripts in detail

    How to add fields to the scripts in detail.
    Plz give me one example help me out.

    Hi
    add fields to the scripts by sending that field between  two &s.
    for example if u want to add lifnr of lfa1 table then pass field like this.
    &wa_lfa1-lifnr&.here wa_lfa1 is work area for internal table it_lfa1.
    if name1 then &wa_lfa1-name1&
    in this way you can add fields to the script under any window.
    i am sending one example program for scripts.
    &--structure declaration--
    TYPES:BEGIN OF ST_LFA1,
          LIFNR TYPE LFA1-LIFNR,
          NAME1 TYPE LFA1-NAME1,
          LAND1 TYPE LFA1-LAND1,
          ORT01 TYPE ORT01,
          REGIO TYPE REGIO,
          END OF ST_LFA1.
    TYPES:BEGIN OF ST_EKKO,
          EBELN TYPE EKKO-EBELN,
          BUKRS TYPE EKKO-BUKRS,
          AEDAT TYPE EKKO-AEDAT,
          ERNAM TYPE EKKO-ERNAM,
          BSTYP TYPE EKKO-BSTYP,
          LIFNR TYPE EKKO-LIFNR,
          END OF ST_EKKO.
    TYPES:BEGIN OF ST_EKPO,
          EBELN TYPE EKPO-EBELN,
          EBELP TYPE EKPO-EBELP,
          LOEKZ TYPE EKPO-LOEKZ,
          AEDAT TYPE EKPO-AEDAT,
          MATNR TYPE EKPO-MATNR,
          NETWR TYPE EKPO-NETWR,
          END OF ST_EKPO.
    &--internal table,work area declaration--
    DATA:WA_LFA1 TYPE ST_LFA1,
         IT_LFA1 TYPE STANDARD TABLE OF ST_LFA1,
         WA_EKKO TYPE ST_EKKO,
         IT_EKKO TYPE STANDARD TABLE OF ST_EKKO,
         WA_EKPO TYPE ST_EKPO,
         IT_EKPO TYPE STANDARD TABLE OF ST_EKPO.
    &--data declaration--
    DATA:TOTAL TYPE EKPO-NETWR,
          V_EBELN TYPE EKKO-EBELN.
    data: v_item(20) type c.
    &--parameter for purchase document number--
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS P_PURDOC LIKE V_EBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      PERFORM GET_DATA_FROM_EKKO.
      PERFORM GET_DATA_FROM_LFA1.
      PERFORM GET_DATA_FROM_EKPO.
    &--grand total--
      LOOP AT IT_EKPO INTO WA_EKPO.
        TOTAL = TOTAL + WA_EKPO-NETWR.
        CLEAR WA_EKPO.
      ENDLOOP.
    &--open form--
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
        DEVICE                            = 'PRINTER'
        FORM                              = 'Z_50886_VENDOR'
        LANGUAGE                          = SY-LANGU
       EXCEPTIONS
         CANCELED                          = 1
         DEVICE                            = 2
         FORM                              = 3
         OPTIONS                           = 4
         UNCLOSED                          = 5
         MAIL_OPTIONS                      = 6
         ARCHIVE_ERROR                     = 7
         INVALID_FAX_NUMBER                = 8
         MORE_PARAMS_NEEDED_IN_BATCH       = 9
         SPOOL_ERROR                       = 10
         CODEPAGE                          = 11
         OTHERS                            = 12
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    &--write form for header details--
      READ TABLE IT_EKKO INTO WA_EKKO INDEX 1.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'HEAD'
         WINDOW                         = 'HEADER'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    &--write form for item details--
      LOOP AT IT_EKPO INTO WA_EKPO.
      concatenate wa_ekko-ebeln wa_ekpo-ebelp into v_item.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           ELEMENT                        = 'ITEM'
           WINDOW                         = 'MAIN'
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
    &--write form for vendor details--
      READ TABLE IT_LFA1 INTO WA_LFA1 INDEX 1.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'VENDOR'
         WINDOW                         = 'ADDRESS'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    &--write form for grand total--
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        WINDOW                         = 'TOTAL'
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       CODEPAGE                       = 9
       OTHERS                         = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    &--close form--
      CALL FUNCTION 'CLOSE_FORM'
       EXCEPTIONS
         UNOPENED                       = 1
         BAD_PAGEFORMAT_FOR_PRINT       = 2
         SEND_ERROR                     = 3
         SPOOL_ERROR                    = 4
         CODEPAGE                       = 5
         OTHERS                         = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *&      Form  get_data_from_ekko
    FORM GET_DATA_FROM_EKKO .
      SELECT EBELN
             BUKRS
             AEDAT
             ERNAM
             BSTYP
             LIFNR
          FROM EKKO INTO TABLE IT_EKKO WHERE EBELN = P_PURDOC.
    ENDFORM.                    " get_data_from_ekko
    *&      Form  get_data_from_lfa1
    FORM GET_DATA_FROM_LFA1 .
      IF NOT IT_EKKO[] IS INITIAL.
        SELECT LIFNR
               NAME1
               LAND1
               ORT01
               REGIO
               FROM LFA1 INTO TABLE IT_LFA1 FOR ALL ENTRIES IN IT_EKKO WHERE
                    LIFNR = IT_EKKO-LIFNR.
      ENDIF.
    ENDFORM.                    " get_data_from_lfa1
    *&      Form  get_data_from_ekpo
    FORM GET_DATA_FROM_EKPO .
      IF NOT IT_EKKO[] IS INITIAL.
        SELECT EBELN
               EBELP
               LOEKZ
               AEDAT
               MATNR
               NETWR
               FROM EKPO INTO TABLE IT_EKPO
               WHERE EBELN = P_PURDOC.
      ENDIF.
    ENDFORM.                    " get_data_from_ekpo

  • How to fill field with test data in alv grid display

    hi all,
    i m adding field TEXT to the structure for displaying grid.
    i m modifying program like this
    DATA: ALV_OUTPUT  LIKE HRPDV_EXPIRED_Q OCCURS 0 WITH HEADER LINE.
    TYPES : BEGIN OF FS_OUTPUT .
          TEXT(20) TYPE C.
            INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
    TYPES       TEXT(20) TYPE C.
    TYPES    END OF FS_OUTPUT.
    DATA: fs_output like table of alv_output.
    CLEAR WA_FIELDCAT.
      WA_FIELDCAT-FIELDNAME = 'TEXT'.
      WA_FIELDCAT-seltext_l = 'Abteilungs Struktur'.
      wa_fieldcat-tabname   = 'ALV_OUTPUT'.
      WA_FIELDCAT-COL_POS  = '13'.
      APPEND WA_FIELDCAT TO P_GT_FIELDCAT.
    this is what i have write for diapalying field. but my question is how to fill test data with field TEXT.I m writing like this but not executed in the aboove grid dispaly statement.
    loop at alv_output.
    *alv_output-text(20)  = 'abcdefgh'.
    *modify alv_output.
    *endloop.
    plz tell me how to fill test data

    hI..,
    Your table declaration has to be like this..
    TYPES : BEGIN OF FS_OUTPUT .
    INCLUDE STRUCTURE HRPDV_EXPIRED_Q.
    TYPES TEXT(20) TYPE C.
    TYPES END OF FS_OUTPUT.
    DATA: ALV_OUTPUT LIKE standard table of fs_output initial size 0.
    loop at alv_output <b>into fs_output</b>.
    <b>fs</b>_output-text(20) = 'abcdefgh'.
    <b>modify alv_output index sy-tabix from fs_output transporting text.</b>
    endloop.
    Now give this table alv_output to the GRID_DISPLAY function module..
    you will get the required output !!
    Plz do remember to close the thread when ur problem is solved !!
    reward all helpful answers !!
    regards,
    sai ramesh

  • I created a pdf with some filled fields.  The person I e-mailed it to said it was blank.

    I open a PDF, use form wizard to detect and create fields, end form wizard, fill in some of the fields, save doc, and e-mail it.  Recipient says PDF fields are all blank.  Does anyone know what I'm doing wrong?
    Using Acrobat 9 Pro.

    If you are sending a quote and they do not need to deal with the form itself, after you complete the form just flatten it so that the form fields go away and are embedded as part of the PDF. Then save to another name (assume you already do that). Then you are simply sending a PDF to them, not a form. The form is simply being used by you to create a quote. This may be your best solution and makes it independent of viewer.
    OK, I really don't know how to flatten the form directly, but a simple alternative is to print the completed form to a new PDF. I am sure that others may be able to tell you how to flatten the form in a more direct manner. In any case, if you can get the end result into a simple PDF format and not a form, then your customers should not have a problem reading it. Bill
    PS - In another post, George indicated you can use a JavaScript to flatten the form
    // Flatten this document
    flattenPages();
    I have been successful running a javascript as a batch, but don't know how to run it from the Acrobat window on the current file. It was a heck of a lot more straight forward in older versions of Acrobat where there was an obvious run button. But then I may just be missing something obvious that the manual does not discuss.

  • How can I include all the scripts in a folder?

    I've been using CFAJAXIMPORT to import all the scripts from
    CFIDE. I need to include this folder to get things like CFWINDOW to
    work properly. I'm attaching how I've been trying to import all the
    scripts but I get an error when I use CFAJAXIMPORT. It says
    "Invalid usage of AJAX tag" "Use cfajaximport tag to specify
    SCRIPTSRC or make sure all ajax controls are inside a single cfform
    tag that has SCRIPTSRC". The leads me to think that CFAJAXIMPORT is
    not the correct way to load all the scripts from a specified
    directory. This how I call that CFAJAXIMPORT tag:

    here's from the cfml reference:
    quote:
    scriptSrc attribute:
    Specifies the *URL, relative to the web root*, of the
    directory that
    contains the client-side script files used by ColdFusion.
    This directory
    includes the JavaScript files and the default location of the
    CSS files
    used for all AJAX features.
    If you use this attribute, the *cfajaximport tag must precede
    all other
    ColdFusion AJAX tags on the page*; that is, all tags that
    rely on the
    scripts.
    *You can have only one scriptsrc attribute on a page*, in a
    cfajaximport
    tag or a cfform tag. You can use a scriptsrc attribute in a
    cfajaximport
    tag to apply its value to all forms on a page.
    make sure you meet all 3 conditions marked with * *.
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • How to update fields in the target table in correspondance with the source file values

    Environment: win7, SQL server 2008 R2
    Application: Microsoft Management SQL Studio 2008 R2, Business Intelligence 2008 - SSIS
    SSIS competency level: Novice
    Problem: I have been trying to update some of the fields in the destination table,student table, in reference to data set in the staging table and ssn table.  I was able to insert/load new data to the destination using look up transformation
    while the driver is ssn (data mapping) but i couldn't know how to update some of the fields in the student table while keeping the orignal pn_id of both tables(ssn and student tables), because pn_id already exists in the SSN table and student table. There
    are other records also associated with the pn_id so I am not allowed to update the pn_id in the destination tables. For example,
    SSN Table (pn_id,ssn)
    ('000616850',288258466)
    ('002160790',176268917)
    Staging Table (ssn, id, pn_id, name, subject, academic year, comments)
    (288258466, 1001, '770616858',Sally Johnson, English,A, 2005,'great student')
    (176268917, 1002, '192160792',Will Smith, Math,38000,C, 2014,'no comments')
    (444718562, 1003, '260518681',Mike Lira, Math,38000,B, 2013,'no comments')
    Student Table (destination table)(id,pn_id,subject,academic year, grade, comments):
    (1001, '000616850', ' ',' ', ,'')
    (1002, '002160790', ' ',' ', ,'')
    Expected Results:
    My goal is to have student table updated as the following:
    Student Table
    (1001, '000616850', 'English','A' ,2005 ,'great student')
    (1002, '002160790', 'Math ',' C',2014 ,'no comments')
    please advise

    Why can't you use simple UPDATE command in EXECUTE SQL Task as below,
    DROP TABLE SSN
    DROP TABLE STAGING
    DROP TABLE STUDENT
    CREATE TABLE SSN(pn_id VARCHAR(100),ssn BIGINT)
    INSERT INTO SSN VALUES('000616850',288258466)
    INSERT INTO SSN VALUES('002160790',176268917)
    CREATE TABLE Staging (ssn BIGINT, id INT, pn_id BIGINT, name VARCHAR(100), subject VARCHAR(100),grade VARCHAR(10), [academic year] INT, comments VARCHAR(100))
    INSERT INTO Staging VALUES(288258466, 1001, '770616858','Sally Johnson', 'English','A', 2005,'great student')
    INSERT INTO Staging VALUES(176268917, 1002, '192160792','Will Smith', 'Math','C', 2014,'no comments')
    INSERT INTO Staging VALUES(444718562, 1003, '260518681','Mike Lira', 'Math','B', 2013,'no comments')
    CREATE TABLE Student(id INT,pn_id BIGINT,subject VARCHAR(100), [academic year] INT, grade VARCHAR(10), comments VARCHAR(100) )
    INSERT INTO Student VALUES(1001, '000616850', NULL,NULL,NULL ,NULL)
    INSERT INTO Student VALUES(1002, '002160790', NULL,NULL,NULL ,NULL)
    UPDATE Student SET Subject = C.Subject, [academic year]=C.[academic year], grade=C.grade,comments=C.comments
    FROM SSN A INNER JOIN Student B
    ON A.pn_id=B.pn_id INNER JOIN Staging C
    ON A.ssn = C.ssn
    SELECT * FROM Student
    Regards, RSingh

  • How to hide fields using java script

    Hi,
    I have some fields in my form that I want to hide on click of one checkbox.
    I have added the javascript into click event(change event also) of check box when previewing in the Adobe LiveCycle Designer, the fields are hidden successfully when I select the checkbox. But when I deployed the same PDF, the fields are not hiding on click of check box.
    I have install ACF and set it as dynamic form.
    My Adobe Life Cycle Designer Version - 7.1
    I have put some alert statement to access the presence property of the object. The property is invisible in alert statement but could not understand why it is not hiding the fields.
    Another important observation if I am writing the same code in initialise event then it is hiding field.
    Please help me in this.
    Regards
    Satya

    Hi Satya,
    I am facing the same issue. Were you able to fix it ?
    Before deploying the xdb, the script works fine. After deployment it does not work.
    I used the code :
    xfa.resolveNode("Page11.Sub_PayTransGenDataCorpAdd").presence = "hidden";
    xfa.resolveNode("Page11.Sub_BranchAddress").presence = "hidden";
    Please advise..
    Regards,
    Vibha

  • Z BDC Field in the script

    Hello Gurus,
    We are working on Interactive script in the SAP CRM 7.0 and we are having a problem when a variable that comes from a non-standard BOL object is include in the script.
    This BOL is not used in any view and it is just used to show additional information about the BP in the interactive script.
    So we have the the BDC Field //CurrntCustomer/BuilZEncuestaCSConPeritoRel/NUM_SINIESTRO
    In order to create the this BDC Field  we have made a Z class as a sub-class of CL_BUIL_ABSTR and we redefined the READ method ( the class reads data from a Z table)
    The attribute NUM_SINIESTRO is a field type NUMC(10) and when it is showed in the script it is in blank (0000000000) It does not show the real value.
    At same time, we customized the corresponding enters in the view u2013 CRMV_OBJ_BUIL and u2013CRMV_MODEL_BUIL
    Any help??
    Thanks in advance.
    Raquel

    Yes you can undo the delegation at any point of time not to worry. It is just atable entry.
    Go to swo1->Settings->Delegates
    If you want to use a Custom Business object that is a delegate of a Standard Business Bo you can use it. You create a Virtual attribute in your custom Business Object. If you delegate the Custom bo with Standard BO. Whenever you refer to standard Business Object you will have this Custom attribute in your kitty. This will help in start Condition.
    <b>Reward points if useful</b>

  • How to add field to the header for FBL5N ALV report

    Hi,
       I need to add fields to the customer line item display ALV report(FBL5N) header part.Right now there are four fields in the header like customer, company code, name and city, after that I need to add first name last name and phone no. Can any one tell me where exactly I need to add and populate there fields to be appear in ALV output list.
    Thanks in Advance
    Swapna

    Yes I have tried, I have place a break point in that perform but it does not stop. I think that is not the correct place to added and populate fields. That routine is for populate selection screen ranges single and multiple values and parameters only.
    Thanks
    Swapna

  • How to fill text with the negative of the background image

    I have a picture of grass as the background. I am trying to put text on the image, and have the fill of text be colored as the negative of the background grass image colors. To represent what I wish to do, I demonstrated the color I wish to obtain inside the fill by highlighting the text over the image. Any help is appreciated. Thanks.

    Pinipples,
    As I (mis)understand it, you may:
    1) Copy/replace the image on top of itself;
    2) Invert the colours of the copy image;
    3) Place the text (which may be live Type) on top of the copy image, select both (not the original image), and Object>Clipping Mask>Make.

  • How to declare variables in the script

    My total data is coming from standard print  program.
    i copied standard form into zform.
    i am dispaying regup-skfbt and regud-wrshb in my layout set.
    now i want to deduct regup-skfbt and regud-wrshb and display in layout set only.
    for the above issue how to solve.

    Hiiii
    write the subroutine in the layout
    ex: perform (performname) in program(program name)
         using (regup-skfbt )
         changing(regup-skfbt )
    goto se38 in the attributes types select the subroutine pool
    in tht write as follows:
    form <perform name> using in_par
                                    changing out_par
    read table in_par index 1.
    write ur code depends on ur business process
    modify out_par index sy-tabix.
    endform
    reward points if useful
    regards
    Jaipal

  • How to fill matrix with the output of recordset query?

    Hi all,
    I want a user matrix to load data when I hit a button and the data to be filled is the output of an sql query. binding the matrix columns with table columns and then load the matrix with DBDatasource attached to that table will not do in this case as the columns in the sql query are from several different tables or views. 
    writing following line to do this takes several minutes to load the data:
    For j = 0 To Reordset.RecordCount - 1
    Matrix.AddRow()
    Matrix.Columns.Item("col1").Cells.Item(i).Specific.value =  Recordset.Fields.Item("cardcode").Value
    Recordset.movenext()
    next
    Is there any other way to fill the matrix in this case, which loads the data faster?
    Regards,

    Hello Binita,
    I've tested the CFL for DataTable-Matrixes in my test-AddOn. But there's still one problem left. Maybe you find it out (I will need this in the future too...).
    The ChooseFromList must be added behind the DataTable-Bind, which is done on every MTX-Load (it's not from the sample above, so the UIDs are new ones):
                oDt = oDts.Item("dt_test")
                query = "SELECT  * FROM [@T_CONVTOOLS01]"
                oDt.ExecuteQuery(query)
                oMtx.Columns.Item("0").DataBind.Bind("dt_test", "Code")
                oMtx.Columns.Item("1").DataBind.Bind("dt_test", "U_Alpha01")
                oMtx.Columns.Item("2").DataBind.Bind("dt_test", "U_Price01")
                oMtx.Columns.Item("3").DataBind.Bind("dt_test", "U_Quant01")
                oMtx.Columns.Item("4").DataBind.Bind("dt_test", "U_Date01")
                AddChooseFromLists()
                oMtx.LoadFromDataSource()
    ...where AddChooseFromLists() is...
      Private Shared Sub AddChooseFromLists()
            Try
                Dim oCfls As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                Dim oCfl As SAPbouiCOM.ChooseFromList
                Dim oCflCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                Dim oBtn As SAPbouiCOM.Button
                Dim oMtx As SAPbouiCOM.Matrix
                Dim oCol As SAPbouiCOM.Column
                Dim oEtx As SAPbouiCOM.EditText
                oMtx = oForm.Items.Item("MTX_TEST02").Specific
                oCfls = oForm.ChooseFromLists
                oCflCreationParams = SboCon.SboUI.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                oCflCreationParams.MultiSelection = False
                oCflCreationParams.ObjectType = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
                oCflCreationParams.UniqueID = "CFL_C1"
                oCfl = oCfls.Add(oCflCreationParams)
                '### OPTION:
                '# Shown ChooseFromList restricted by Conditions
                oCons = oCfl.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "CardType"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "C"
                oCfl.SetConditions(oCons)
                oCol = oMtx.Columns.Item("1")
                oCol.ChooseFromListUID = "CFL_C1"
                oCol.ChooseFromListAlias = "CardCode"
            Catch e As Exception
                Microsoft.VisualBasic.MsgBox(className & ".AddChooseFromLists()" & vbCrLf & "Exception:" & vbCrLf & e.Message.ToString)
            End Try
        End Sub
    But I'm running into problems when trying to set the MTX-Cell via DataTable at the CFL-Event (see comment):
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
                    Dim oMtx As SAPbouiCOM.Matrix
                    Dim oCFLEvent As SAPbouiCOM.IChooseFromListEvent
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    Dim oDataTable As SAPbouiCOM.DataTable
                    Dim cflID As String
                    Dim oDt As SAPbouiCOM.DataTable = oForm.DataSources.DataTables.Item("dt_test")
                    oCFLEvent = pVal
                    cflID = oCFLEvent.ChooseFromListUID
                    'Dim oForm As SAPbouiCOM.Form
                    'oForm = SboConnection.SboUI.Forms.Item(FormUID)
                    oCFL = oForm.ChooseFromLists.Item(cflID)
                    If Not oCFLEvent.BeforeAction Then
                        oDataTable = oCFLEvent.SelectedObjects
                        If oDataTable Is Nothing Then Exit Sub
                        '############## Matrix Test #######################################################################
                        If (oCFLEvent.ItemUID = "MTX_TEST02") Then
                            oMtx = oForm.Items.Item("MTX_TEST02").Specific
                            '### CFL Results to UserForm
                            oDt.Rows.Offset = oCFLEvent.Row - 1
                            MsgBox(oDt.GetValue("U_Alpha01", oCFLEvent.Row - 1))
                            MsgBox(oDataTable.GetValue("CardCode", 0))
                            ' PROBLEM - can't get this working - don't know at the moment:
                            ' on other forms SetValue works....
                            oDt.SetValue("U_Alpha01", oCFLEvent.Row - 1, oDataTable.GetValue("CardCode", 0))
                            ' this also gives me problems...:
                            'oMtx.Columns.Item("1").Cells.Item(oCFLEvent.Row).Specific.value = oDataTable.GetValue("CardCode", 0)
                            oForm.Update()
                        End If
                    End If
                End If
    The CFL-Form opens and returns the choosen value(s) at the CFL-event. But writing to MTX still not works with this code...
    Maybe you find the last piece. If so: please write here.
    Cheers,
    Roland
    p.s.:
    David Nussböck wrote
    LOL - ROLAND WAS FASTER ))
    ...just one minute...

  • How to fill values in the system matrix through code

    hi
    All
    i want to fill the system matrix in the sales order in such a way that
    Items will be filled in system matrix in the lost focust event of the Customer Code selection in the Sales order Document
    how can i fill the system matrix through code
    one thing that first column(ItemCode)  of the system matrix column is a Icombbox type
    Now i need to fill out item code using code
    can any one suggest the answer
    thanks in advance

    madhu,
    You need to catch the Validate event, when pVal.BeforeAction = False for form items 4 (CardCode) and 54 (CardName) of the Sales Order form.
    Concerning the form's matrix, you can fill it but you cannot change it (you cannot change the ItemCode column into a ComboBox. Is is a EditText)
    Fill a System matrix's Cell with the following code:
        Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
        oMatrix.Columns.Item("ItemCode").Cells.Item(Row_Num).Specific.Value = "Item_Code"
    Regards,
    Vítor Vieira

  • How to remove fields from the default user portal page ?

    Hi Travis,
    How do I modify the page that display after submitting the ticket. These plugins are helpful to modify portal's home page only. Please advise if I'm missing anything.
    Thank you

    I like to remove the right hand side ticket history field that displays after user submit a new issue.
    This topic first appeared in the Spiceworks Community

  • How to append fields to the structure rfposxext........

    hi all,
    i have to append one field i.e.
    Credit Representative Group: (Table: KNKK; Field Name: SBGRP)to the standard structure 'rfposxext'.
    can anybody suggest me,how to do it?
    thanx in advance.

    Hi,
    Are you talking Web Dynpro? There is a seperate forum for that.
    If you are, I believe it is not possible to change structures that you import as a model. (standard structure?)
    You can create your own custom structure that contains the model structure + the field you require.
    I hope it makes sense.
    Good luck!
    Roelof

Maybe you are looking for

  • Getting counts and divide by sum in a single Pivot query

    Hi, I have a pivot query which gives the counts of all codes. I also have to divide the count with the total in the same query. e.g   col1          col2                   col3 error_1       05-Jun-2012       parts error_1      05_june_2012     parts

  • Bug in iCal 4.0

    I noticed this bug in iCal 4.0 on OS X 10.6.1. On single day view, if I have two or more appointments at the same time with a duration of 0 minutes, then the two or more appointments will overlap each other and be unreadable. For example, if 3 appoin

  • If Airtunes accesses my iTunes, will it still play on iMac simultaneously?

    I was just wondering if I had Airtunes and was using the iPhone remote app to play through my living room speakers, will music still play on my iMac at the same time? As my iMac is connected to some pretty decent speakers, it would be nice to have th

  • Wifi iTunes sync? How does it work?

    Please help me I just don't know how wifi sync works.... (Windows vista)

  • How to roll back when procedure fails

    Hi All, In my process using procedures i am droping the temp tables and creating temp tables ,if any procedures fails how should roll back all the process Procedure1(droping tables)----->procedure2(creating table1)--------->procedure3(creating table2