CUSTOMER_ADD_DATA_CS open for input in display mode

Hello,
I have activated this BADI succesfully, I am linking into my subscreen correctly however the fields are always open for input. Do I have to control this in my abap or is there some way you use I-activity in SET_DATA?
Regards
Fiona

Hi Fiona,
In method GET_TAXI_SCREEN specify the screen and a Z program to control the fields for input.
Eg:
      E_SCREEN = '0100'.
      E_PROGRAM = 'ZBADI_CUS_ADD_DATA'.
      E_HEADERSCREEN_LAYOUT = 'V'.
Create a new program ZBADI_CUS_ADD_DATA to control the display and additional functionality.
Please specify the code as mentioned below based on the screen group assigned.
Eg Code:
MODULE status_0100 OUTPUT.
  IF sy-pfkey CA 'A'.
    IF sy-tcode EQ 'VD03' OR
       sy-tcode EQ 'XD03' OR
       sy-tcode EQ 'FD03'.
      LOOP AT SCREEN.
        IF screen-group1 EQ 'CUS'
          screen-input = 0.
          screen-output = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDMODULE.
Revert back for any further clarification.
Regards,
Babul.

Similar Messages

  • OPEN DATASET FOR INPUT IN TEXT MODE - linesize issue

    Hi,
    I faced a problem when opened ANSI file with CYRILLIC in ECC 6.0 Unicode system - the system cuts the line to 250 characters. Below is snip of code:
    REPORT  Z_TEST_01 LINE-SIZE 1023.
    DATA:
      file TYPE char40 VALUE 'ansi_file.txt',
      line TYPE char1024, len TYPE i.
    OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    WHILE sy-subrc = 0.
          READ DATASET file INTO line ACTUAL LENGTH len.
            WRITE: / len, line.
    ENDWHILE.
    CLOSE DATASET file.
    In this case, variable LEN always get value 250. File-content is correctly converted from ANSI and all CYRILLIC is displayed to the screen. I changed type for LINE - initialy the type was STRING, actially.
    Further, tried to open it in BINARY - like this:
    DATA:
      file TYPE char40 VALUE 'ansi_file.txt',
      line TYPE char1024, len TYPE i.
    FIELD-SYMBOLS <hex_container> TYPE x.
    OPEN DATASET file FOR INPUT IN BINARY MODE.
    ASSIGN line TO <hex_container> CASTING.
    DO.
      READ DATASET file INTO <hex_container>.
      IF sy-subrc = 0.
        WRITE: / line.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET file.
    WRITE: / line.
    In this case I got bigger linesize (obviously 1024), but faced conversion issues - the file contains some CYRILLIC and it is messed. Played for few hours with conversions - using additions: IN LEGACY BINARY MODE... BIG/LITTLE ENDIAN, CODE PAGE... without success. So decided to ask...
    Well, I searched SDN for a similar issue, but didn't found, except this one:
    Re: OPEN DATASET STRING Problem
    Could someone points me what am I doing wrong? How can I read my ANSI file with line-size more than 250 chars? Actually, in my case line size may vary up to 1800 chars. Further, afrer conversion and some validation, I should save it back to the AS.
    Many thans in advance.
    Regards,
    Ivaylo Mutafchiev

    Sorry for the noise - it is not an issue anymore.

  • Open Dataset for input in BINARY MODE not working after ECC 6.0 upgrade

    Hi All,
    Our requirement is to download an XML file from the application server and there is a customized program to download these files.
    This program uses the statement,  Open dataset ...for input in BINARY MODE
    and it works perfect for 4.7. There were no issues. But, after the upgrade to ECC 6.0 this does not work.
    When the data is read in ECC 6.0 , it is shown in some special characters and it could not be opened with XML editor and the file is not completely downloaded. I read through the forum and tried the following statement as well,
    Open dataset....for input in LEGACY BINARY MODE.
    After this statement, there were no special characters, but there is a blank space introduced before every character.
    Example : TEST(actual)
                      T E S T (After the legacy binary mode)
    Could you please let me know if there is any solution to rectify this problem. Appreciate your help.
    Thanks a million.
    Edited by: Manikd on May 12, 2011 3:52 PM

    But this program was already using BINARY MODE and after upgrade this is not working. I know, it may work in TEXT MODE. However, I cannot change the whole program to TEXT mode now.

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • BSP table column not opening for input

    I know very little about BSP but have a problem to fix. We have a BSP which works in 4.6 but not in ECC6. The problem is that when a table line is selected one of the columns is supposed to open for input but is not doing so. In the View the table is defined as selectionmode = "singleselect" and onRowSelection = "MyEventRowSelection" - I'm not sure where to find that event and associated method. Can someone direct me to the likely area of this problem? Thanks.

    Hi Mike,
    To have an editable table, the fields of your table must be bound to a cell editor of type 'Input field'. Check if this is done.
    Then, you should bind the read_only property of each input field to the context attribute. Not the read only of the table. This way, you can bind different columns to different attributes and make selected columns only as editable etc. For each field in your table, you will have a cell editor. Do the binding for each cell editor, i,e each column.
    Regards,
    Nithya

  • InputStream and OutputStream - Already opened for input

    URL url = new URL("website.com");
            URLConnection urlc = url.openConnection();
            urlc.setDoOutput(true);
            urlc.setDoInput(true);
            urlc.setUseCaches(false);
    // read something from a file
            BufferedReader reader = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
            while (reader.read() > 0) {
                // do something
            reader.close();
    // write something to the same file
            DataOutputStream dos = new DataOutputStream(urlc.getOutputStream());
            dos.writeBytes("write something");
            dos.close();"java.io.IOException: Already opened for input:"
    what is that supposed to mean? Doesn't "reader.close();" take care of that?
    I can read the file and I can write to a file. But I can't do both one after another...
    Why is that?

    I just swapped the code
    URL url = new URL("website.com");
            URLConnection urlc = url.openConnection();
            urlc.setDoOutput(true);
            urlc.setDoInput(true);
            urlc.setUseCaches(false);
    // write something to the same file
            DataOutputStream dos = new DataOutputStream(urlc.getOutputStream());
            dos.writeBytes("write something");
            dos.close();
    // read something from a file
            BufferedReader reader = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
            while (reader.read() > 0) {
                // do something
            reader.close();

  • Bex variable ready for input not displayed in webi

    Hi,
    I created bex query with some variables.
    Variables are defined as "optional" but "ready for input". On productive system the prompts are all displayed, but when i transported the webi report to dev, some prompts are not displayed.
    we are on BW 7.31 and BO 4.0. I also tried with BO 4.1. but the problem is the same.
    I have no idea what's wrong here! Attached you can find some screenshots on my current settings.
    thanks,
    Katharina

    Hi,
    yes the reports are based on BICS and I moved them from prod to dev.
    I already checked, the query panel does not show these variables!
    I copied query and saved under new name, and i also created a new webi report upon this query, but some variables ready for input are still not displayed.
    Regards,
    Katharina

  • RMAUTH-Different behaviour for Change and display mode

    Dear friends,
    I modified a standard roadmap by copying it and added 1 folder called "X" with normal node and saved.
    When i go for display mode in RMAUTH, I am unable to see that folder.If i go to change mode i am able to see the folder "X".
    Even in RMMAIN I couldnt see it,But if i go to change-->Scope option i could able to see it & has the tick mark in it.
    Plz provide ur valuable solutions.

    Hi,
    You cannot change any of the field you mentioned in infotype 0001.
    You can assign a position using action 0000 through PA40 or by using copy option infotype 0000 in PA30. This will be in edit mode.
    Suggested to use PA40 so that all other relevant infotypes can also be updated accordingly.
    Rest of the components (Objects Job, Cost Center, Org unit etc)  has to be assigned to the respective position in PO13-->Relation ships.
    Note: Take care of the dates.
    Regards,
    Pranitha
    Reward if found Helpful

  • HT3924 any HDMI converters available for iMac target display mode yet?

    Just got this bed with a pop-out TV, and I'm thinking about getting an iMac 27" to use instead of a TV. Problem is, I'll also want to attach an Apple TV or Freeview box to my iMac - so I can play content from my iPad / watch live TV from the freeview box. This would be technically possible with target display mode, except the Apple TV / Freeview box don't have mini display port output.
    Anyone know if there are HDMI to mini display port adapters available yet to facilitate this? From what I've read most of them only output from mini display port to hdmi, not the other way round.

    I have a Asus HD6570 2GB Graphics Card in that computer with HDMI out, DVI out, and VGA out. I have a Asus HD6570 2GB Graphics Card in that computer with HDMI out, DVI out, and VGA out.
    None of those will work.
    It has to have a Mini DisplayPort, not evn a Display port will work.
    ScreenRecycler...
    http://www.screenrecycler.com/ScreenRecycler.html

  • Logical system name in SLD for the R3 buss. system is not open for input.??

    Dear all,
    We are upgrading to PI 7.1  and have a problem in a scenarie  where PI is sending IDOC to R3.
    The problem is probably related to the fact that it is not possible to write a logical system  name in SLD for the R3 system. I can not read the logical system name for the R3 system into the Directory (adapter specific identifier), *because the logical system for  the R3 bussines system is not an input file??*. How can i enter the logcal system name so i avoid following error:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_INV_RCV_SERV</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Receiver service cannot be converted into an ALE logical system</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards Ugur

    There are two ways....
    Option 1 : Go to the BS of ur R3 system in Integration Direction. Go to edit mode mode and select Properties -> Adapter Specific attributes - > enter the LS name and save...
    Option2 : You can use it from the mapping.... U either hard code/use from source the EDIDC40 section of ur mapping and the in ur IDOC receiver config select the option user
    Option ! is the best soln...All the IDOC to that R3 system will go the specified LS...
    regards,
    Arvind R

  • Open dataset twice once for input and once for output in unicode system

    Hi All,
    In a program
    I used a open dataset to read the data from the file.
    OPEN DATASET cmp_file FOR INPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    Then i closed the file.
    Again later in the program,
    I used a open dataset to transfer the data.
    OPEN DATASET cmp_file FOR OUTPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    But this time I get sy-subrc = 8.
    Unable to open the file and subsequent TRANSFER is leading to the runtime error.
    Note : I am using a unicode system
    I could run the same program well in non-unicode system..
    ->
    Is it that if a file contains data already
    1.I need to delete the data and open it
    or
    2.I need to open in APPENDING mode manadatorily...
    in case of UNICODE system..
    Kindly suggest..

    Hi,
    IF you have write permission al S.O. Level you need to check your DATASET rigths using AUTHORITY_CHECK_DATASET, this validate your rigths with S_DATASET object.
    Example
    TYPE-POOLS SABC.
    CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
    EXPORTING PROGRAM = 'ZDATASET'
    ACTIVITY = SABC_ACT_READ
    FILENAME = '/tmp/sapv01'
    EXCEPTIONS NO_AUTHORITY = 1
    ACTIVITY_UNKNOWN = 2.
    See SABC type pool to know wich activities are aviable.
    Hope this help.
    Regards

  • Check if file open for read (INPUT)

    Hi,
    how ti cheeck if file is open for reading. I have problem, that one file could be open for reading, for example with RFBIBL00, and my Z program creates this file. My program should not be able to open this file, because of inconsistencies in RFBIBL00. Diff. filenames aren't an option....
    thx
    mario

    not helping, in case that one program has
    open dataset dsn for input in text mode encoding default.
    in other program:
    open dataset dsn for output in text mode encoding default.
    returns sy-subrc = 0.
    and i'm able to use
    transfer string to dsn
    . and change file.
    I don't want to do that

  • Open dataset for input don't work after upgrade from 46C to 47

    We did an upgrade from 46C to 47, after that all the Z programs that have the sentence "open dataset for input" alwas send a sy-subrc = 8, the curios things is that the sentece "open dataset for output" works ok.
    Please I need help to solve this?
    En example of code.
    PARAMETERS: P_ARCHF(60) OBLIGATORY DEFAULT
                'C:\20050900.txt' LOWER CASE.
    OPEN DATASET P_ARCHF FOR INPUT IN TEXT MODE.
    IF SY-SUBRC <> 0. MESSAGE i001 WITH ARCHIVO. stop. endif.

    Well, it's telling you that the datset doesn't exist. From the help in 4.7:
    OPEN DATASET
    Addition 1a
    ... FOR INPUT
    Effect
    OPEN ... FOR INPUT opens the file in read mode.
    If the file does not exist, OPEN ... FOR INPUT fails with Return Code SY-SUBRC = 8.
    Note
    If OPEN DATASET is not executed in a Unicode program and if the user has write authorization for the file, the file is opened in read and write mode. Otherwise, it is only opened in read mode.
    Rob

  • Open dataset input error

    Hi guys
    i am trying to open more than 100 files  using open dataset input but i am getting below error
      program is abending reading after 50files..
    Program failing in  open data set error  can u help me please?
    143
    144 * Each file is getting into an internal table
    >>>   OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    146   IF sy-subrc <> 0.
    147     CONTINUE.
    148   ELSE.
    149     DO.
    150       READ DATASET w_file INTO s700_delta.
    What command I should give here
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_TOO_MANY_FILES', was not
         caught and
        therefore caused a runtime error.
        The reason for the exception is:
        The maximum number of open files (100) has been exceeded.
    please let me know what should makes changes to avoid this abend?

    Standard programming problem, should be rather trivial to find with a quick search. Basically there's always a limit of how many open file handles you can have at a time.
    Please try to consult the ABAP help next time before posting (or search on SCN). A quick check for [open dataset|http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET.htm] would've told you the following:
    You can open up to 100 files per internal session. The actual maximum number of simultaneously open files may be less, depending on the platform.
    Most likely you actually don't want to have all those files open at the same time and you simply forgot to use a [close dataset|http://help.sap.com/abapdocu_70/en/ABAPCLOSE_DATASET.htm] after reading each file.

  • CJ20N tcode in display mode

    Dear Experts,
    I have a task step in workflow. I use a BO method in it . In that method I need to write code to open CJ20N tcode in display mode. I want to know is there any tcode to display CJ20N in display mode. If yes then using call transaction i can go directly to that tcode.
    If not then please tell me what code or procedure should i do in order to open CJ20N tcode in display mode. (As per requirement i want to open that tcode in display mode alone. No need to go back to change mode. The task is only for reviewing the tcode).

    Hello Bharath,
    I am not sure as to whether you can call the tcode CJ20N directly in a method. Instead of that, you can use separate methods to display the project definition, WBS and Network activity.
    Use the respective display methods in the following BOs...
    BUS2001 -- Project Definition
    BUS2054 -- WBS
    BUS2002 -- Network
    PSAFRU --- Network confirmation
    Hope this will help you.
    Thanks,
    Samson

Maybe you are looking for