How to write program for the long text in EMIGALL for the DEVICE LOCATION.

Hi,
I am pretty new to this ISU field and i have been asked to code for a Long Text in EMIGALL for DEVICE LOCATION,
so i would like someone can help me with it.
thanks in advance.
Robert.

Robert,
You can find most of the answers to your questions in the Guidelines:
Chapter 2.4.2 describes how to configure the field rule Fixed Value.
Chapter 2.4.5 describes how to configure the field rule via KSM.
Chapter 2.5 descibes the Key- and Status Management and the usage of the the KSM in field rules.
The specific answer to your questions are:
(1) ...When i was adding the fixed rule, it was asking for domain so what should be the Domain that i should add ... You may ignore the domain field when creating a fixed value object. It's more for information purposes.
(2) ... and what should i keep the fixed value, string or filed or abap rule ... I'd suggest to use 'String' and enter the specific value in the field 'FV contents'.
(3) ... Finally you need to adjust the RETURN-FIELD of the newly created BAPI migration object to AUTO-X_HEAD-TDNAME, where do i make this adjustment can you specify that ... The return field can only be adjusted int the migration object maintenance screen (MigObject -> Change). Please see chapter 3.1 for more details on the 'return field' and figure 3-8 in chapter 3.4.2 how to generate a BAPI migration object.  
(4) ... Well i would also like to ask about the x_head-tdname =  via KSM (e.g. DEVLOC), where should i put the value ... You wanted to know how to migrate a long text of a device location migration object DEVLOC). According to chapter Chapter 2.4.5 you need to enter the name of the superior migration object (here DEVLOC) in the 'MigObject1'field on the 'via KSM' sub-screen on the field maintenance screen.
(5) ... and what exactly would it be can i put DEVLOC in the ID of technical Object and where should i put this value... I am not sure I understand your question. In the end you will need to pass the number (ID) of the technical object in the TDNAME field. Either you put the id into the import file (only if you know the id) or you need to use the 'via KSM' field rule to replace the legacy system key of the device location by the SAP key by the load report and prior to passing the auto data to the application thus your new function module.
Kind regards,
Fritz

Similar Messages

  • How to wrap the long text in page when the item is a messageStyledText

    Hi,
    I have one region which is a labeledfieldRN and two items under this RN which are messageStyledText.Now, those items are mapped to two VO attributes.Both are VARCHAR2(240).
    While running the page all 240 characters are appearing for these two fields and we are forced to scroll the page horizontally.
    'NoWrap' is made false for these two items.
    Is there any way we can wrap the data in next lines so that we need not scroll?
    Please help.
    Thanks,
    Abhijit.

    You may want to play around with the "Visual length" of other fields if you have them. Maybe by shortening other fields, you can prevent having to scroll for your 240 character length field.
    -Scott

  • How to add the long text in Production order through FM

    Hi,
    Iam having custom program which has BAPI (BAPI_PRODORD_CREATE) inside it and this program is used to create Production orders with the details of Sales order Number,Line item,Plant,Order type,Quantity and Start date. This program is scheduled in Background.
    Now client wants to add the Long text (seperate TAB in production order and they want to update the VC details of Sales order in the Long text area).
    One option is after creation of Production order, through BDC(calling CO02 and update the long text) we  can update the long text and client doesn't want this option.
    Another option is after creation of Production order, using Function module SAVE_TEXT, Update the Long text in Production Order and this is not working in Production order (already my ABAP consultant checked it ).
    If any one of you came across this requirement, pl share with me how you addressed it.
    Regards
    A.Sureshbabu

    Hi,
    The method is quite simple, i presume you're quite well versed with doing recording, so the key thing to keep in mind is how to prepare the input file.
    At my end i had about 5 lines of data which needed to be uploaded, hence i had a tab-delimited file with the order nos. in the first column & the five lines of text in five different columns (Refer format below)
    Order No.
    Line - 1
    Line - 2
    Line - 3
    Line - 4
    Line - 5
    12345
    txt - 1
    txt - 2
    txt - 3
    txt - 4
    txt - 5
    67890
    txt - a
    txt - b
    txt - c
    txt - d
    txt - e
    Now provide this input file for your lsmw or bdc program & it will work. You can work with your abaper if you're not so comfortable with LSMW or BDC programming he / she should be able to easily make it work for you.
    Regards,
    Vivek

  • Get the long text into BADI from text editor

    hi all,
    I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
    the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
    Can anybody help how can i get the long text to the BADI.
    Regards,
    Madhavi

    Hi
    Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
    IF_LONGTEXTS_MM~GET_TEXTOBJECT
    IF_LONGTEXTS_MM~GET_TYPES
    IF_LONGTEXTS_MM~GET_TEXT
    IF_LONGTEXTS_MM~SET_TEXT
    IF_LONGTEXTS_MM~ADOPT_TEXT
    IF_LONGTEXTS_MM~DELETE_TEXT
    IF_LONGTEXTS_MM~EDIT_TEXT
    Regards
    Eduardo

  • PASS THE LONG TEXT TO SAPSCRIPT

    Hello Friends,
    I m using itcsy structure to pass long text of quality certificate to sapscript output but im able to show only 80 characters in the output but my long text is more than 250 characters.
    so how i can show these many characters value in my sapscript pls guide....
    Regards,
    Sunny

    If you want to print the long text, you should use the INCLUDE statement in your SAP SCript.
    1. You don't have to take the pain of fetching the text.
    2. You don't have to reformat the same.
    INCLUDE TEXT_NAME OBJECT TEXT ID
    example:-
    INCLUDE ZSDINV2A OBJECT TEXT ID ST LANGUAGE EN
    Edited by: krupa jani on Nov 25, 2008 10:17 AM

  • I need to know in which table the long text is stored

    Using the transaction code 'AC03' , I go to the ' Create Service Master Page '.  Navigating through the page , I could see a ' long text ' button . Once it is being clicked , the white space for text entry comes .
    My query is this -> <b>I need to know in which table the long text is stored and the name of the field ??</b>
    If one goes to the table 'ASMDT' , one can find a field  'KZLTX' , which is a long text indicator, but not a long text storage field ......  plz help

    Hi
    Use the function module READ_TEXT for fetching the long text..
    I came across similar situation in my project where i need to fetch the long text for Notification no.I have used the following code for fetching the Notificatin long text,you can just compare this logic and change accordingly.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    CLIENT   = SY-MANDT
                    ID       = 'LTXT'
                    LANGUAGE = WA_STRUCT12-KZMLA
                    NAME     = QMNUM
                    OBJECT   = 'QMEL'
               TABLES
                    LINES    = INT_TAB13.
    Specify LANGUAGE if you wanna fetch the long text regardless of the log on lang.The resulting long text will be stored in the itab INT_TAB13 which can be defined with reference to the structure TLINE.
    Hope this helps.
    Regards,
    Hakim

  • Please tell me how to go back to a long text I wrote and then i must have accidentally swiped the screen one way or another.  How do I go back to the screen so I don't have to re-write the whole text?

    Please tell me how to go back to a long text I wrote and then i must have accidentally swiped the screen one way or another.  How do I go back to the screen so I don't have to re-write the whole text?

    Cloud takes over https://forums.adobe.com/thread/1584746 may help

  • How to add long text in bdc for transaction fb01 ?

    IN the existing program of bdc fb01
    i have to add a long text field
    but it gets stuck while i process in sm35
    is there a fm to add the field directly
    thanks in a advance

    Hi
    You can upload the Long texts separately into the transaction using the CREATE_TEXT fun module
    Need to pass the correct parameters like OBJECT,ID, OBJECTNAME and LANGuage with the proper declarations.
    see the sample code and do accordingly
    REPORT zmm_longtext_sm
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Description :   This Program is used to Upload the Service Master
                 :   Long Texts using the Fun Module CREATE_TEXT
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            asnum like asmd-asnum,    " Service No
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras.   " Language
    Constants
    CONSTANTS:
    Object ID for Long Text of Service Master
      c_best     TYPE thead-tdid VALUE 'LTXT',
      c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
    Upload the Texts
      SORT itab BY asnum.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        concatenate '00000000000' itab-asnum into dl_name.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Service No'(001),
                 itab-asnum.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Service No'(002),
                 itab-asnum.
        ENDIF.
        AT END OF asnum.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to read the long text in Transaction Code : VA02 at runtime??????

    Hi,
    I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
    If any body has soluntion, please provide me. I would really be  greatfull if any body provide the solution.
    Deepak Kumar
    E-Mail: [email protected]

    Hi Sudheer,
    Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
    Couuld you send me some sample code? I would appreciate if you reply at the earliest.
    Deepak Kumar.

  • How to pass variables to a program called from long text of an error msg ?

    Hi,
    The aim is the following: in the long text of an error message, there should be a link; this link must call a program or a transaction and pass to this program or transaction the four variables of the error message. Is it possible to insert such a link with parameters in the long text of the error message ? If yes, what is the syntax for this ?
    (I searched in the forum and found the way to insert a link to a transaction, but I found nothing about parameters).

    Thank you for the answer.
    Unfortunately, this solution is not applicable in my case. I'm using the application log and the scenario is the following:
    - the user displays the application log in transaction SLG1
    - he sees a lot of error and succes messages
    - by dubble-clicking on these messages, he displays the long text of the messages
    - I want a link in these long texts to a transaction using the variables of the messages. I tried inserting a link to a transaction, and the transaction is well called, but with a breakpoint I checked variables SY-MSGV1 to MSGV4 and they are empty.

  • How to retrieve the long texts from  purchase Info record (ME13)

    Hi,
    How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13).  I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
    So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
    Thanks.

    Hello,
    Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
    Cheers !

  • Where do I find the long text for Damage and Cause in Notifications (IW21)

    Hi ppl,
    Can anyone let me know where the long text for Damage and Cause is stored (can be seen in IW21)?
    Can I retrieve it through FM READ_TEXT? If yes, what are the values of the parameters to be passed?
    Thanks,
    David.

    Hi!
    It is easy to check whether some text is read by "READ_TEXT" or not.
    1) Create text in dialogue mode and save it.
    2) Place brake-point in READ_TEXT FM
    3) go to view this text in transaction again
    If the program is switched to debug mode, it means u can use this FM. Have u tried do this stuff?

  • How to write program for handling  script ?

    In script i have 2 pages.
    In first page i have constant windows and variable windows.
    In second page i have main window.
    How to write program for this?

    Hi
    You need to write a driver program. You need to use open form, then write_form to write data into various windows and then close_form to close.
    As you don't want main window in the first page first try out just by having the window in the second page; i guess system will take care of it. As all other windows filled and if u start writing data in the main it'll go for next page.
    If doesn't work have the window on the first page with the least hight and write a command
    IF &SYST-PAGE& EQ 1
        NEXT-PAGE.
    ENDIF.
    Then in the second page you can have the main window hight as per your requirement.
    Here is an example
    (1) Get customer data
      TABLES: scustom, sbook, spfli.
      DATA: bookings like sbook...
      select * from...
    (2) Open form
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE = 'PRINTER'
          FORM = 'S_EXAMPLE_1'
          DIALOG = 'X'
        EXCEPTIONS
          others = 1
    (3) Print table heading
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'HEADING'
          TYPE = 'TOP'
          WINDOW = 'MAIN'
          FUNCTION = 'SET'
    (4) Print customer bookings
      LOOP AT bookings WHERE
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'BOOKING'
            TYPE = 'BODY'
            WINDOW = 'MAIN'
      ENDLOOP
    (5) Close form
      CALL FUNCTION 'CLOSE_FORM'
    Regards
    Surya.

  • The long text for purchase order text  field in mm03

    Hi,
         Please provide me long text for purchase order field.in mm03 the view purchase order text having the long text for purchase order.this is enter when ever your creating the material.but we have table and field name for that and also how to handle this long text.please provide me urgently.
    Thanks & Regards,
    Radhakrishna.

    Hi,
    A sample code for ur requirement.
    TABLES : ekko,   "Purchasing Document Header
             ekpo,   "Purchasing Document Item
             thead.  "SAPscript: Text Header
    DATA: t_theads LIKE stxh  OCCURS 0 WITH HEADER LINE.
    DATA: t_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: v_ebeln_ebelp(15) TYPE c.
    TYPES: BEGIN OF t_download,
           ebeln LIKE ekko-ebeln,
           ebelp LIKE ekpo-ebelp,
           tdobject LIKE stxh-tdobject,
           tdid LIKE stxh-tdid,
           tdspras LIKE stxh-tdspras,
           count(4) TYPE c,
           tdformat LIKE tline-tdformat,
           tdline LIKE tline-tdline,
         END OF t_download.
    TYPES: BEGIN OF t_header,
          line1(20) TYPE c,
          line2(20) TYPE c,
          line3(20) TYPE c,
          line4(10) TYPE c,
          line5(10) TYPE c,
          line6(10) TYPE c,
          line7(10) TYPE c,
          line8(10) TYPE c,
          END OF t_header.
    DATA: g_filename TYPE string.
    DATA: gt_header TYPE STANDARD TABLE OF t_header.
    DATA: gs_header TYPE t_header.
    DATA: gt_download TYPE STANDARD TABLE OF t_download.
    DATA: gs_download TYPE t_download,
        gt_tlines   LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: v_subrc TYPE subrc.
    DATA: v_nb_lines TYPE i.
    DATA: v_ok TYPE i.
    DATA: v_ko TYPE i.
    DATA: v_ow TYPE i.
    DATA:  p_fname TYPE string.
    DATA: g_append.
                              SELECTION SCREEN                          *
    SELECT-OPTIONS : s_ebeln  FOR ekko-ebeln.
    PARAMETERS:
       p_filedn(132) TYPE c OBLIGATORY,
       p_file(132) TYPE c OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filedn.
      PERFORM file_f4_get CHANGING p_filedn.
    START-OF-SELECTION.
    *Select all the purchase order corresponding to select criteria
      CLEAR t_theads. REFRESH t_theads.
      SELECT *
      FROM ekko
      WHERE ebeln IN s_ebeln.
    *Select all the text for P.O. header
        SELECT * FROM stxh
              APPENDING TABLE t_theads
              WHERE tdobject = 'EKKO'
              AND tdname      = ekko-ebeln.
    *Select Item of each P.O.
        SELECT *
        FROM ekpo
        WHERE ebeln = ekko-ebeln.
          CONCATENATE ekpo-ebeln ekpo-ebelp
          INTO v_ebeln_ebelp.
    *Select the text for P.O. item.
          SELECT * FROM stxh
                APPENDING TABLE t_theads
                WHERE tdobject = 'EKPO'
                  AND tdname   = v_ebeln_ebelp.
        ENDSELECT.              "select ekpo
      ENDSELECT.             "select ekko
      DESCRIBE TABLE t_theads LINES v_nb_lines.
      LOOP AT t_theads.
    Read the text from pool
        CLEAR thead.
        REFRESH t_tlines.
        CALL FUNCTION 'READ_TEXT'                               "#EC *
             EXPORTING
                  id                      = t_theads-tdid
                  language                = t_theads-tdspras
                  name                    = t_theads-tdname
                  object                  = t_theads-tdobject
             IMPORTING
                  header                  = thead
             TABLES
                  lines                   = t_tlines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        MOVE-CORRESPONDING thead TO gs_download.
        gs_download-ebeln = thead-tdname+0(10).
        IF thead-tdobject = 'EKPO'.
          gs_download-ebelp = thead-tdname+10(5).
        ENDIF.
        gs_download-count = 0.
        LOOP AT gt_tlines.
          gs_download-tdformat = gt_tlines-tdformat.
          gs_download-tdline = gt_tlines-tdline.
          gs_download-count = gs_download-count + 1.
          APPEND gs_download TO gt_download.
        ENDLOOP.
        CLEAR gs_download.
      ENDLOOP.
    END-OF-SELECTION.
    Hope this helps.
    please reward points if  useful.
    Regards
    rose

  • No CATS record exists for the long text in row 4

    Hi,
    When we are tyring to upload the time sheets of tha employees in se38 usinga  customized program, from Non sap to sap,  for a few employees we are getting an erro like No CATS record exists for the long text in row 4,  where are we supposed to verifiy, what causes this error.
    Please assist.
    Thanks,
    Shilpa.

    Your first step should be in your input file.  What is on the fourth line?
    Look into the Blueprint Specifications of your Custom Program for the parameters of that input file.

Maybe you are looking for

  • Optimizing performance question

    I understand that the best practice for use of images is to resize, crop, and rotate images to the disired size and rotation before importing them into iBooks Author. Does that apply to a situation when you are re-using the same image several times i

  • How do I enable 'Rapport' in Firefox 15.0.1 for Mac?

    Have used the security add on 'Rapport' for over a year with Firefox but since upgrading to 15.0.1, its disappeared and I cannot find a means of restoring it. What's the solution?

  • Is it possible to change 0currency as navigational attribute

    Hi Guru's, It is possible to make 0CURRENCY as navigational attribute. Please Clarify. Thanks, Deepika

  • Showing all rows in updatable report

    Hi everyone, the users of my application have requested the option of showing all records, even though the updatable report has pagination turned on. How can this be achieved at run time? Thanks a lot, Henrik

  • Colour Band in RAW display

    AMD ATHLON +5200 64 x 2 Processor 2Gb Memory Radeon 1600 Graphics card Catylist Software Suite 8.2 LG L1710B and EIZO GE210 Monitors XP Professional CS3 Extended 10.0.1 Camera Raw 4.3.1 Color Management active When Camera Raw screen displays in full