Coulun values shuffle while printing data with FM REUSE_ALV_GRID_DISPLAY

HI Experts,
I am using FM REUSE_ALV_GRID_DISPLAY to display values using ALV Grid.
My requirement is to add the new column UOM price at 7th of field catalog. In order to get UOM price, I added UOM Price in field catalog and OUTTAB at position 7. When I passed the value to FM REUSE_ALV_GRID_DISPLAY, I am getting value of 6th column displayed on 7th as well.
Even though I have different set of data in column 7 of OUTTAB, I am getting 6th column value. Kindly suggest what else I need to do.
Thanks,
Krishna.

Why not,
TYPES : BEGIN OF ty_outtab,
        kunnr    TYPE kunnr,
        payer(10) TYPE c, 
        name1(35) TYPE c ,
        matnr TYPE matnr ,
        bukrs(4) TYPE c ,
        menge TYPE Menge,
       space1 TYPE char20,
        uomprice TYPE uprice_kr,   
        meins TYPE j_1imeins,
        netprice TYPE netprice,
        vrkme TYPE vrkme, 
        value TYPE -value,
        waers TYPE waers,
        invoice(10) TYPE c,
END OF ty_outtab.
PERFORM field_catalog USING 'KUNNR' text-004 10.           " PREPARE FOR RECORD NO
  PERFORM field_catalog USING 'PAYER' text-018 10.            "Payer  "Defect 20492 NA15480
  PERFORM field_catalog USING 'NAME1' text-005 35.           " PREPARE FOR COMPANY CODE
  PERFORM field_catalog USING 'MATNR' text-006 18.           " PREPARE FOR GL ACCOUNT
  PERFORM field_catalog USING 'BUKRS' text-007 5.           " VALID FROM
  PERFORM field_catalog USING 'MENGE' text-008 17.           " VALID TO
*PERFORM field_catalog USING 'UPRICE_KR' text-021 20.    " UOM price newly added column*
   PERFORM field_catalog USING 'MEINS' text-25 20.
  PERFORM field_catalog USING 'NETPRICE' text-25 20 .
  PERFORM field_catalog USING 'VRKME' text-020 17.
  PERFORM field_catalog USING 'VALUE' text-26 20.
  PERFORM field_catalog USING 'WAERS' text-27 20.
  PERFORM field_catalog USING 'INVOICE' text-015 10.           " REASON
FORM field_catalog USING p_lv_fieldname TYPE slis_fieldname p_lv_text TYPE slis_text40 p_len TYPE dd03p-outputlen.
gv_count = gv_count + 1.
  CLEAR gs_field.
  gs_field-fieldname = p_lv_fieldname.
  gs_field-col_pos = gv_count.
  gs_field-seltext_m = p_lv_text.
gs_field-outputlen = 20. "Defect 20492 NA15480
  gs_field-outputlen = p_len. "Defect 20492 NA15480
  APPEND gs_field TO gt_field.
  CLEAR gs_field.
ENDFORM.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = sy-cprog
     i_callback_top_of_page            = 'TOP_OF_PAGE'
     i_bypassing_buffer                = gc_x
  I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
     it_fieldcat                       = gt_field[]
  IT_EXCLUDING                      =
     i_default                         = gc_x
     i_save                            = gc_a
  IS_VARIANT                        =
    TABLES
     t_outtab                          = gt_display[]
    t_outtab                          = gt_outtab[]
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2        .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Similar Messages

  • How to include print date with time on SkillBuilders Schedule Plug In?

    Hi,
    Do you have an idea how to include and get the print date with time on the SkillBuilders Plug In? It shows me the date only, time not included. Have tried to put "HH24:MI", "HH24MI" or Tochar(HH24:MI)? No result??
    select p.fullname, sbip_schedule.start_date(e.event_schedule) start_date
    , sbip_schedule.end_date(e.event_schedule) end_date
    , sbip_schedule.duration_seconds(e.event_schedule) duration_seconds
    , sbip_schedule.calendar_summary(e.event_schedule) calendar_summary
    from app_events e
    Thanks!

    I forget to clarify I am looking for the answer is how to get the print of date with time, Start date with time and End Date with time.

  • Problem while uploading data with GUI UPLOAD Function

    Hi,
      I am facing problem while uploading data with FM GUI UPLOAD    in out text file there are 7 row  but after the FM GUI UPLOAD  there are 14 entries are coming in Internal table   and each alternate row is coming as blank  with  0000 in some column   in internal table first row is proper and second line is blank so on.
    what can be the problem .
    The program in which we are using this we are using it from last 2 year but we are facing problem today only.
    regards,
      zafar

    Hi,
      The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change  in the file formate.
      So waht can be the problem  to check any inconsistancy in system  i have develop a samll program fro  uploading a text file with same function module ,  but it is working fine.
    regards,
      zafar

  • HP Laserjet 4250 - While Printing PDFs with Watermark, Prints images as scrambled

    Hi,
    I am using HP Laserjet 4250 printer. While Printing PDFs with Watermark, the printer prints images as scrambled. It prints the part of the image as scrambled which is overlapped by the Watermark. The other part of the image is printed fine. When seen on the screen, it shows up the image with the watermark properly. Could you please suggest how to arrive at a solution for this problem. Thanks in advance.

    Hi @Sebastian43 
    I suspect your question would be better answered in the HP Enterprise Business Community,  as the HP LaserJet 6L is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging.  When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP LaserJet 6Lse Printer support page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Error Occuring While Processing Data With DIAdem 8.1Excepti​on EAccessVio​lation in module ntdll.dll at 000111DE. Access violation at address 7C9111DE in module 'ntdll.dll​". Read address 37363430

    Hello,
    We are having an issue running Diadem 8.1 on a new HP XW 9400 with Windows XP SP2. 3 errors have been occuring with frequent crashes, they are:
    1) "1Exception EAccessViolation in module ntdll.dll at 000111DE. Access violation at address 7C9111DE in module 'ntdll.dll". Read address 37363430.
    2) The instruction at "0x7c9111de" referenced memory at "0x352e302d". The memory could not be "read".
     3) ---Error---   DIAdem
    Error in Autosequence - processing in line: 74 (IARV_VAR_GET)
    Runtime Error while executing command "Iarv2Txt$ := FR(T9,L1)"
    Error type: ACCESS VIOLATION
    Error address: 000101DE
    Module name:ntdll.dll
    We are using the same scripts and version 8.1 on a variety of Dell desktop computers (W2K and XP SP2) without any issue, looking for suggestions as this affects no other software on the HP XW 9400 other than DIAdem. Appreciate any suggestions.
    Message Edited by swillh on 06-25-2007 08:55 AM

    Christian,
    I will answer your questions in the text below. Thanks for your help.
    Hi swillh,
    I also would like to help you.
    Unfortunately, The reported access violation in the central Windows ntdll.dll is very unspecific.
    May be the following questions will help you to provide me more info.
    1. You mentioned that the aut's and - I think - also the accessed text file reside on a server.
    Is there a stable network connection?
    The server can sometimes be a little slow but the connection is good. This computer is using the same connection that the prior computer utilized without issue.
    Are the files accessed by multiple clients simultaneously?
    It is possible that more than one computer can be accessing the same file, but again, this has never been an issue. We are reading the files only, not writing to them.
    The processing routines we are running have used for over 5 years without any issues until adding this computer.
    Is the text file read by one client while another client is writing the same file?
    No, files are "read only"
    2. Have you already tested opening the file with the FileOpen command before calling FR?
    Yes
    Do you see any chance to convert the aut to a vbs file? This gives you more alternatives in accessing text files.
    3. What do you mean with "processing ATD's with 30 or more channels of data"? Where is the relation between ATD files and data channels?
    Processing Crash Dummy data with file sets low in channel count (15 channels) result in successful processing without any crashes or access errors.  When processing dummies with more than 20 channels we sometimes encounter these issues. The higher channel count may be the only common factor I can find in these faults.
    Steve
    Message Edited by swillh on 07-09-2007 08:44 AM

  • Error while importing data with DTW

    Hi Guys,
    I received an error when i try to upload data with DTW
    method '~' of object '~' failed65171
    When i click on run simulation again,
    I received another error 65172.
    There's two different error.
    Can anyone help?

    Hi,
    This error means that your Obscommon user is corrupt and you  cannot connect to the SBO-Common database to download the  OBServer.dll that is stored in the temporary directory.
    For more information, see SAP Note 858475, 642564, or 614946.
    Thanks & Regards,
    Nagarajan

  • How to print date with prefix in oracle reports?

    Hi Everyone,
    Please help to get solution for this problem.
    How can we generate View image: oracle Reports in Oracle Reports RDF ?
    we can print date , but i want to print date and st in smaller case and in top right side of date.
    for eg  31st   st should be small and in top right part.
    Please refer the image : i have inserted link for image.
    Thanks in advance,
    HP

    You just go into the paper layout---> ...
    No, first step is to ask the question in the Reports forum :-)
    Edit: TIP: How to find a forum or community

  • Printing Date with Calendar Object

    I am trying to print the current date of a calender object in a mm/dd/yyyy format.
    When I call system.out.println(now.getInstance()); and scroll through the console, it shows DAY_OF_MONTH=29, YEAR=2006, MONTH=6 for July 29, 2006. I realize months are zero based, so month is really 7. My question is, why does:
    System.out.println(now.MONTH + " " + now.DAY_OF_MONTH + " " + now.YEAR);
    print 2 5 1.
    Logic tells me it should print 6 29 2006.
    I have searched previous posts, and couldn't find one that answers my question. How do I take a Calendar object and print its current set date?

    My question is, why does:My question is: why do you care how a Calendar stores its data? If you want to print it, get a Date instance from it and run it through a SimpleDateFormat to get a String representation of the date.
    Don't mix up data and presentation.
    And to answer your question: you don't print the Calendar's date attributes, but the values of some static constants.

  • Printing data with tab spacing

    I have a data file in simple text format where data are oriented in three columns (i.e. time, voltage and current) separated by 'tab' marks. Whenever I am trying to print the document in Java Application (jdk1.2.2) it is not recognizing the tabs, and putting a square sign with a single space in place of 'tab mark' in printing.
    What I have to do to print the data in columns separated with tabs?
    Avijit

    Simple. when you are doing:
    System.out.print("Your text here");
    You can add tabs between by doing the following:
    System.out.print("Your \ttext \there");
    Look closely, I added "\t" .

  • Print date with milli seconds

    I want to print the sysdate with milli seconds also
    Please help me

    Hi
    I also have come up with the same requierment. But we
    are not to use the SYSTIMESTAMP. Is it possible to
    get miliseconds info using SYSDATE only?
    I have tried to search on SQL User guide, they give
    their date and time element formats like 'mm/dd/rrrr
    hh24:mi;ss:ff' but the format mask :ff works only for
    the timestamp variable like SYSTIMESTAMP not for
    SYSDATE or date variables.
    Thanks
    regards
    AbhivyaktiHi,
    They are correct. Read a bit more about DATE and TIMESTAMP and you will clearly see why you can't have milliseconds on a simple DATE datatype.
    hth,
    Guido

  • Error:UNCAUGHT_EXCEPTION while loading data with exception  CX_RSR_X_MESSAG

    Hi,
    Ours is a fresh installation..
    When i am loading for the first time till PSA it is successful..
    As HR data sources are 3.5 datasources, i am loading cube via infopackage..
    When i start the load to cube it is giving me dump with exception CX_RSR_X_MESSAG.
    i checked note  615389 which talks about "buffering of number range object BIM9999998".  the 0REQID is not buffered, but it does not throw any error msg in RSRV to correct the error..
    and one more note 1157796 which talks about patches with version BI 7.0.
    Now we are in BI 730 with heighest level 0005.
    Not sure how to solve this error
    Any ideas?

    S Simran wrote:
    Hi,
    >
    > Ours is a fresh installation..
    >
    > When i am loading for the first time till PSA it is successful..
    >
    > As HR data sources are 3.5 datasources, i am loading cube via infopackage..
    >
    > When i start the load to cube it is giving me dump with exception CX_RSR_X_MESSAG.
    >
    > i checked note  615389 which talks about "buffering of number range object BIM9999998".  the 0REQID is not buffered, but it does not throw any error msg in RSRV to correct the error..
    >
    > and one more note 1157796 which talks about patches with version BI 7.0.
    >
    > Now we are in BI 730 with heighest level 0005.
    >
    > Not sure how to solve this error
    >
    > Any ideas?
    What's your SP? Are you having any master data updates left unattended? Check the Master data objects, check the flows. Related SAP Notes : 914304 / Check 967202(SP10) and 998673(SP11), 1157796, 763203 and 615389
    Edited by: Arun Bala G on Feb 12, 2012 9:50 PM

  • Create event in GOS obj to trigger workflow while attaching data with GOS

    Hello experts,
    It is a little bit urgent.
    I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
    Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
    The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
    There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
    I was trying to create an event for GOS object (Z object not a subtype of any other object) which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as am not so strong in workflow. I ahve just created the event. Do I need to write some code for the event?
    I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
    Thank you all in advance.

    Hello Arghadip,
    Thank you for replying so early. The table point is very helpful but about the batch job I do not get it. I think the second option is good trigerring event on updation of table. But again I do not know how to do it as I have customized object so have to create the event from the scratch and that, sir, is my main problem.
    Kindly help.
    Thank you

  • Slow performance while integrating data with ODI while open report

    In ODI i have a schedulled package that runs every 4 hours, this package loads data from an DB table to BAM.
    Normally each execution loads about 4000 records and takes about 7 seconds to be completed.
    However, in some executions the same 4000 records take about 30 minutes to be loaded into BAM; normally this happens when a user has a BAM report open in the browser.
    Regards
    Hugo Calado
    Edited by: user12198856 on 23/Ago/2011 3:45

    Hi Manisha,
    When previewing a report, Report Designer need connect to the report data sources, run dataset queries, cache the data on the local computer, process the report to combine data and layout, and render the report. The report processor also runs all the queries
    for datasets in the report using the current parameter defaults, and saves the results as a local data cache (.rdl.data) file.
    The first time that previewing a report that relies on a server reference. In your scenario, you can try to improve preview performance through the link below:
    http://technet.microsoft.com/en-us/library/ee240846.aspx
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Junk Characters while persisting data with CMP beans

    Hi
    when i am entering some data and saving the data to the data base using CMP beans ,its converting the data to junk characters like ��@y some times .Do you have any idea why its happening ?pls respond asap

    whats the data type you are using ? whats the App. server, the database ?

  • Error while posting data with BAPI_ACC_ACTIVITY_ALLOC_POST

    Hi All
    I am using BAPI_ACC_ACTIVITY_ALLOC_POST to post documents but getting error as 'The document has too many line items (maximum number = 997). Even though my input file has only 900 records.
    I tried reducing it to 600 . Even then I am getting same error.
    Has anybody come across this , message class BK (829).
    I have traced that this message comes from function module  K40C_DOCUMENT_CREATE which is being called internally in the BAPI.
    Please help me on this , its urgent.
    Thanks & Regards
    Babita Sharma

    Change your code to create 400 line items for each document number. I mean, 1 header for 400 line items.
    That way you will have one structure HEADER and 400 lines in table ITEMS.
    RMS.

Maybe you are looking for

  • If i put music on my external hard drive will it sync to my iTunes?, if i put music on my external hard drive will it sync to my iTunes?

    I have set a brand new external harddrive as the location of my Itunes Music folder. Im trying to transfer my music from an old external hard drive. If i drag n drop from one external to the other will it automatically sync to itunes? or do i have to

  • Unicode characters in PI

    Hello All, We are working on an IDOC to flat file scenario where Idoc is containing some Russian characters. I have done the required settings in RFC destination, and able to get the russian characters in PI. But when I am posting the file on FTP ser

  • TV - out cable

    Could this cable work ?? http://i16.ebayimg.com/03/i/001/07/f4/342f_1.JPG or would i HAVE to buy a  CA-75U Nokia AV cable To connect my N79 to the TV ?

  • Changes to investment program

    I've made a few changes to the investment program, throguh t-code IM05. I can see the changed made through t-code IMV2, but I cannot select the measure code to see those changes. That is, I can select the position ID of an investment program and see

  • Why do my calendar events gets deleted?

    I was wondering why my calendar events have been deleted??