How to give values to the field in free selection via call transaction?

Hi,
I'm using call transaction for transaction "FAGLB03". And i'm passing the values for the fields company code, account number and year using the respective parameter id. But i need to pass the value for Profit center also, which is in the free selction button (near to variant button). I have tried by passing the value thorugh the parameter id. but it is not taking up. The code is as follows:
    SET PARAMETER ID 'ACC' FIELD lv_saknr.
    SET PARAMETER ID 'BUK' FIELD lv_rbukrs.
    SET PARAMETER ID 'GJR' FIELD lv_ryear.
    SET PARAMETER ID 'PRC' FIELD lv_prctr.
    CALL TRANSACTION 'FAGLB03' AND SKIP FIRST SCREEN.
Here the value of profit center is not filling up in the screen.
If anybody have any clue please replay back.
Thanks in Advance.

Hello Pothiraja
If the free selection parameter cannot be filled this way you may try to call the corresponding report using the SUBMIT statement. <b>SUBMIT </b>has the option
... WITH FREE SELECTIONS texpr
For details refer to the ABAP keyword documentation for SUBMIT -> selscreen_parameters.
Regards
  Uwe

Similar Messages

  • How to enter values in the fields of standard SAP Infotype e.g. IT0024

    Hi,
    How to enter values in the fields of standard SAP Infotype?
    e.g. I want to enter values in infotype IT0024(Qualifications) in the field AUSPR(Profincy):-
    1-Level 1
    2-Level 2
    3-Level 3
    4-Level 4
    5-Level 5
    Thanks,
    Ameet

    Hi Divya,
    I checked with the screen and report which is mentioned by you. But I want to modify/make changes that should appear in the screen when you view details for a particualar employee in Qualifications(IT0024).
    Please refer the screen 2000 of module pool MP002400 in SE80. In that screen I want to make change as listbox with key.
    Can it be achieved in the same way as mentioned by you before by making standard SAP report as Z and then modify using layout editor?
    Please help me out. I think I am almost there.
    Thanks,
    Ameet

  • Regarding how to pass values to the fields of a screen.

    Hi  all :
         there is a field called approver on screen. I'd like to pass value to it ,
         may I use the statement  like      approver-text = 'xxx'. ?
         is this ok?
         Thanks for any of your reply.

    Hi,
    Parameters: p_name type char20 default 'XXX'.
    you can give like this.
    or
    parameters: p_name type char20.
    Initialization.
    p_name = 'XXX'.
    both these will work
    regards
    Sarves

  • SQLLOADER command: how to "||" constant value to the field

    In SQLLOADER control file, how do I CONCATENATE a constant on the loading field like the update statement in SQL
    update table_A
    set col_1 = "RULE" || col_1 || "; DALDAL"
    I did
    DESCRIPTION REF(CONSTANT 'RULE ', DESCRIPTION, CONSTANT 'DALDAL'),
    or
    DESCRIPTION CONSTANT 'RULE ' || :DESCRIPTION || CONSTANT "DALDAL',
    both give me error.
    Any idea. I'm trying to avoid run update table statement after the load.

    Try..
    DESCRIPTION "'RULE ' || :DESCRIPTION || 'DALDAL'"
    .....Example...
    SQL> desc t;
    Name                                      Null?    Type
    NAME                                               VARCHAR2(200)============Control File======================
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE T
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    NAME "'Mr.' || :Name || ' Jr.'"
    BEGINDATA
    Rajesh
    {code}
    After load...
    {code}
    SQL> select * from t;
    NAME
    Mr.Rajesh Jr.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

  • How to pass value standard program to Workflow after than to call Transaction

    Hi Experts..
        While We are Cancel any PO in Me29n, it will Pass values(Like reason for cancel With PO No) and Send a mail (User name whose reject the cancel against Release of PO No) in workflow inbox(workplace) After than getting a mail any particular User, they will See the Message of  Purchase  order against  Canceled. After then they will double click on that message it will trigger ME29N Tcode with the particular PO.
            Using with Badi in Me29N we have to Passed  Values and sent a Mail in work place but When  Double click on Message I Dont Know HOw to Call ME29N in work place....
         Cancel Po in Me29N-->WORK PLACE --> Double click on message,will call ME29N
       So, please help me how to i can Rectified this.
    Regards,
    kumar

    hi Kumar
    BUS2012 is a business object, see it in tcode SWO1.
    You can try blow code:
    INCLUDE <CNTN01>.
    DATA: OBJ TYPE SWC_OBJECT.
    DATA: PO_ITEMS TYPE TABLE OF BAPIEKPOC.
    DATA: PURCHASEORDER     TYPE     BAPIEKKO-PO_NUMBER VALUE '4500000004'.
    SWC_CONTAINER CONTAINER.
    SWC_CREATE_OBJECT OBJ 'BUS2012' ''.
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.
    SWC_SET_ELEMENT CONTAINER 'PurchaseOrder' PURCHASEORDER.
    SWC_CALL_METHOD OBJ 'Display' CONTAINER.  " call method 'Display' show ME29N.
    Infact, you can achieve all your requirment in workflow, don`t need implement BADI.
    The trigger event is event 'rejection_start' in BUS2012. Create a user decision(which will show in workplace) and create a task bounding the 'Display' method of BUS2012.
    There are so many detail content in scn or wiki. thanks.
    hope can help you.
    Regards,
    Archer

  • How to get the value of the field 'KOMP-NETWR' in Pur.

    Hello everyone,
    how do i get the value of the field 'KOMP-NETWR' in the purchase order.
    thanks
    Arnaud

    Hi,
    Try this code similarly for komp
    REFRESH i_komv.
    CLEAR i_komv.
    CALL FUNCTION 'PRICING_REFRESH_TX'.
    CALL FUNCTION 'REFRESH_TAX_TABLES'
    EXPORTING
      LIVERY        =
    LOOP AT i_ekpo INTO wa_ekpo.
      wa_taxcom-bukrs = wa_ekko-bukrs.
      wa_taxcom-budat = wa_ekko-bedat.
      wa_taxcom-bldat = wa_ekko-bedat.
      wa_taxcom-waers = wa_ekko-waers.
      wa_taxcom-hwaer = wa_ekko-waers.
      wa_taxcom-kposn = wa_ekpo-ebelp.
      wa_taxcom-mwskz = wa_ekpo-mwskz.
      wa_taxcom-wrbtr = wa_ekpo-netwr.
      wa_taxcom-xmwst = 'X'.
      wa_taxcom-lifnr = wa_ekko-lifnr.
      wa_taxcom-ekorg = wa_ekko-ekorg.
      wa_taxcom-matnr = wa_ekpo-matnr.
      wa_taxcom-werks = wa_ekpo-werks.
      wa_taxcom-matkl = wa_ekpo-matkl.
      wa_taxcom-meins = wa_ekpo-meins.
      wa_taxcom-mglme = wa_ekpo-menge.
      wa_taxcom-mtart = wa_ekpo-mtart.
      wa_taxcom-land1 = wa_ekko-lands.
      wa_taxcom-ebeln = wa_ekpo-ebeln.
      wa_taxcom-ebelp = wa_ekpo-ebelp.
      CALL FUNCTION 'CALCULATE_TAX_ITEM'
        EXPORTING
          i_taxcom                  = wa_taxcom
        IMPORTING
          e_taxcom                  = wa_taxcom
        TABLES
          t_xkomv                   = i_komv
        EXCEPTIONS
         mwskz_not_defined         = 1
         mwskz_not_found           = 2
         mwskz_not_valid           = 3
         steuerbetrag_falsch       = 4
         country_not_found         = 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.
    clear wa_taxcom.
    ENDLOOP.
    LOOP AT i_komv INTO wa_komv.
      CASE wa_komv-kschl.
    *EXCISE DUTY
        WHEN 'JMOP'.
          v_jmop = v_jmop + wa_komv-kwert.
    endcase.
    endloop.
    Hope this might be of some use.
    Regards,
    sirisha

  • How to put the SQL-statement returned value into the field (as a default)

    Hi,
    I am using Developer/2000 (Forms Designer) under windows 98.
    Please tell me how to put the SQL-statement value (as a default value) into the field before enter-query mode. Noted that I have tried the following ways but still some problems:-
    1) Place the SQL-statement into PRE_QUERY trigger in the form/block level.
    There is a message box which ask 'Do you want to save the changes?'.
    2) Place the SQL-statement before execute enter_query. There is still a
    message box which ask 'Do you want to save the changes?'.
    Any hints? Thanks. Urgent.

    solved it!
    1) Suppress DEFAULT save message
    if form_failure then
    raise form_trigger_failure;
    end if;
    2) Place the default value before enter-query.
    Ref: Title='Default value in query field in ENTER_QUERY mode' in designer forum by CVZ
    form level trigger
    ============
    WHEN-NEW-ITEM-INSTANCE
    =======================
    if :system.mode = 'ENTER-QUERY' then
    :block.item := 'default waarde';
    end if;
    3) Suppress the changes whenever leaving the default field.
    if :block.item is null then
    -- assign statement
    end if;

  • How can we give values to the variable

    Oracle Forms6i
    Hai All
    I am generating an daily attendance regarding shift basis.In that i have written an ifelse condition it work successfull and but it fetches only 350 row out of 800.
    I have declared a variable and i need to know how to assign values to the variable Pls tell the steps to do.I have done correctly but there is an logic error in my coding.Let give me some steps to solve the problem
    My coding is
    declare
    t_in varchar2(25);
    t_out varchar2(25);
    cursor cur_test is
    select * from dail_att where intime=t_in and outtime =t_out;
    --into t_in,t_out from dail_att; 
    begin
    loop
    go_block('TEST_SRI');
    FIRST_RECORD;
    if :bartime between 0145 and 0630 then
         update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :bardate-1 and intime is null and outtime is not null;
    elsif :bartime between 0630 and 0900 or :bartime between 1130 and 1230 or
    :bartime between 1700 and 1800 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
         elsif :bartime > 1645 and t_in is not null and t_out is null then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE and intime is not null and outtime is null;
    end if;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    NEXT_RECORD;
    END LOOP;
    forms_ddl('commit');
    exception
    when others then
    forms_ddl('rollback');
    message(sqlerrm||dbms_error_Text);
    message(sqlerrm||dbms_error_Text);
    end;
    Regards
    Srikkanth.M

    Hai man
    I have generated a daily attendance roll in oracle forms and it executed correctly but while fetching it fetch some of the records. So i have declared a variable in a block and in my coding.
    For those variable i need to pass values from select statement or using cursor.According to that i can use in my ifelse statement.
    If It is clear Or else see the coding
    declare
    bar_code varchar2(25);
    in_time varchar2(25);-------------------------- these are the variable i going to use in select statement to pass values
    out_time varchar2(25); so that i can use in if else statement.
    begin
    loop
    go_block('TEST_SRI');
    FIRST_RECORD;
    select BARCODE,INTIME,OUTTIME into bar_code,in_time,out_time from dail_att where BARCODE= :Barcode
    and ATTEND_DATE = :bardate;
    if :bartime between 0100 and 0630 then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :bardate-1 and in_time is null and out_time is not null;
    elsif :bartime between 0630 and 0900 or :bartime between 1130 and 1230 or
    :bartime between 1700 and 1800 and in_time is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
         elsif :bartime > 1645 then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE and in_time is not null and out_time is null;
    end if;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    NEXT_RECORD;
    message(:barcode);
    END LOOP;

  • How to set the default values of the field of the context.

    Hi Experts ,
    I want to set the default value of the field of the context.
    Where and how this declaration should be done.
    Thanks in Advance.

    In the context tab of the view. Select the attribute for which you want to set the default value.it will show the properties at the bottom. set the Default value property to the value which you want to set as the default value.
    Regards
    Naresh

  • How to change a  value of the field Selection Conditions in Manage- Request

    Hi,
    How to change manualy a value of the field Selection Conditions in Manage infocube -> Requests  ?

    Hi,
    Here is the reason i need to do this:
    The data is loaded by DTP in process chain. Overlaping requests are deleted. But, iIn some cases requests with the same selection options  need not to be deleted. My idea was to change selection options in Manage(infocube) with Abap program without changing selection options in DTP filter,  so that the system would not recognize requests as "overlaping requests".
    So, where is the information about shown in the field Selection Options is stored? In which tables?
    Thanks
    Tigr_Z

  • How do I make a text box solid if the value in the field is greater than 0 and do this for all recor

    Hello,
    I have several text boxes on a document, and wish to make the boxes either solid or visible if the value in the field is greater than 0.
    I am using an excel file for the data, each cell with either 1 or 0 (true or false).
    Any help would be appreciated.
    Thanks,
    BJ

    Yes, I also sent an email regarding this problem.
    I am using XNET to write a custom device for PXI-8516 LIN card.
    I've attached a couple snippets showing where I've tracked the problem.
    The only error that I've seen comes from the XNET Wait vi in the timeout snippet.  I believe that error occurs because frame queued in the write snippet is never transmitted by the LIN card.
    Attachments:
    Timeout_Error_Snippet.png ‏22 KB
    XNET_Write_Snippet.png ‏24 KB

  • How to enter values in the selected list  by pressing f4

    Hi Gurus,
    I have a problem can any one help me in solving this?
    When we go to any table thorugh se11 or se16 to display all the records based on the selective fields like pernr, company code, benefit plan in a Z-table
    Here when I want to display records of selected benefit plans by using the field bplan. here when I go to that bplan field and press f4 then gives me a list of benefit plans, from that list I have to select proper benefitplan for selected records of that plan
    1. Question:
       I have two new plans , can any suggest me how to add in the f4 list of that field. Is it done through any program?
    Another issue,
      I have a report program, when I execute it gives me selected list fields like pernr, date, and some more fields. if you select some fields with the help of f4 , we can choose correct value,
    2 Question,
             I have two new parameters to be added in the f4 list of the fields in the Needed very urgent?
    Thanks
    Ravi

    Hi
    You can create a search for that field with more than one fields and yu can add the search help for that field
    see the doc
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    You can add F4 values for that field using the following
    See the following ex:
    TYPES: BEGIN OF TY_MBLNR,
    MBLNR LIKE MKPF-MBLNR,
    END OF TY_MBLNR.
    DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
    data: it_ret like ddshretval occurs 0 with header line.
    At selection-screen on value-request for s_mat-low.
    Select MBLNR from mkpf into table it_mblnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'MBLNR'
    PVALKEY = ' '
    DYNPPROG = ' '
    DYNPNR = ' '
    DYNPROFIELD = ' '
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_MBLNR
    FIELD_TAB =
    RETURN_TAB = IT_RET
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_mat-low.
    ENDIF.
    Go through the test program.
    REPORT Ztest_HELP .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR TYPE MATNR,
    END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR
    FROM MARA
    INTO TABLE ITAB
    UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'MATERIAL NUMBER'
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_MATNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3. 
    Regards
    Anji

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • How to set values to the structure containing a node with cardinality 0..n

    Hello.
    I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
    <xsd:complexType name="Field">
       <xsd:sequence>
          <xsd:element name="fieldCode" type="xsd:string"></xsd:element>
          <xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Fields">
       <xsd:sequence>
          <xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    I  need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
    Best regards,
    Timur Semenchuk

    Hi Marcus,
    If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
    Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
    IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
    wdContext.nodeYourNode().addElement(yourNodeElem);
    Hope this explains a bit!
    Best,
    Robin van het Hof

Maybe you are looking for

  • How can I get a filename during or after saving in CS4/5?

    I'm trying to get the new filename of a file the user is saving.  The way I'm trying to do it right now is to wait until after the file is saved, and then just check the current filename. In CS5, I found kAIDocumentWritePostprocessNotifier to be noti

  • Hey new to Macs need help getting one(s) running again...

    Hey all, So I acquired some old Macs from a local schools surplus sale. I have managed to get one operational (a G3 tower) but am now trying to get a MacBook running and have had a few issues. I have gotten it to the flashing folder screen but have b

  • My facebook setting keeps saying "Error Signing In" "could not communicate with the server." How do I fix this?

    I have been trying to fix my facebook setting but I keep getting an error message after inputting my password. "could not communicate with the server" keeps popping up. [DELETE ACCOUNT] doesn't work either. It doesn't delete my facebook account at al

  • Date & Time Issue

    I live in Egypt, I have this issue with my iphone4 recently, whenever i use the [Set Automatically] option for the Date and Time it Not the ring time, meaning for example now it's 6.20am, and the phone says it's 3.20pm, even when i turn it off and se

  • Report Analysis template - detailed

    Hi all Do we have standard template to do a very detailed analysis of an existing report? We are trying to do a standard and detailed analysis on an existing report to bring up requirements artifact from the same. Sounds wierd, I know. :) But then th