Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Insert records to DDIC table from internal table according to Sorted format

$
0
0

Hi Experts,

 

I have one question. Before asking the question I want to share my scenario in details:

I have created custom table. In this table, all fields are primary key. Table fields are:

 

I have one report, which will update the records into this table. The records inserted are correct. But sequence is not correct. After successfully executing the report I checked table and record sequence is like that:

 

But I want the below sequence when I will open the table in SE16n transaction:

 

Without pressing sort, could I get the sorted data in SE16n transaction?

In my report, I use INSERT/MODIFY statement. But in both case, I need to arrange records by pressing sort button in SE16n.

 

Any kind of possible solution gratefully accepted.

 

Regards,

Arindam  Samanta.


SE16N - &SAP_EDIT not working

$
0
0

Hi Experts

 

I am able to modify non-key field data or delete row of any Table using SE16N - &SAP_EDIT, but it is not working now.  Please let me know if any alternative?

 

Thanks

Prasad

Reg : Adding new nodes to ALV tree using class CL_GUI_COLUMN_TREE

$
0
0

Hello All,

      I am Using the class to display ALV tree using CL_GUI_COLUMN_TREE class.

My functionality is to add new node or an item when user click on a button.

I have gone through standard SAP example programs before posting this,

but it uses different classes.

Is there any approach for adding a node or an item using this class.

 

With regards,

Sandeep Akella

Webdynpro component usage

$
0
0

Hello Experts

 

I am struggling with calling standard SAP Webdynpro component in bespoke webdynpro.

The system I am using is cProjects and I want to call component DPR_AUTHORISATION in bespoke webdynpro which has one view. In this view I have created a ViewContainerUIElement and embedded the view from the DPR_AUTHORISATION.

The window of this component has inbound plug with parameters and I am not sure how this can work as there is no action to trigger this inbound plug.

I want to fire this inbound plug when the view is displayed.

Can someone please help?

Thank you

Need to change the text in OTR in BSP

$
0
0

HI ALL,       I need to change TEXT in OTR , there is a text in OTR which has spelling mistake and I need to do the correct .Please let me know how to do. Thanks and Regards Sankil Pandya

How to add multiple column header using factory model alv grid display?

$
0
0

I want to add multiple column headers for the same field. I am using Factory model alv to display the output. Please refer the attached screen shot to get a better understanding of the requirement.

 

alv-sdn-png.png.

 

I am getting the following output

 

alv-actual.JPG

 

the code i've used is as follows:-

 

  FORM display_data .
  DATA : lt_salv_table            TYPE REF TO cl_salv_table,
        lt_salv_functions_list  TYPE REF TO cl_salv_functions_list,
        lt_salv_form_layout_grid TYPE REF TO cl_salv_form_layout_grid,
        lt_grid_obj              TYPE REF TO cl_salv_form_layout_grid,
        lt_salv_column          TYPE REF TO cl_salv_column,
        lt_salv_columns          TYPE REF TO cl_salv_columns,
        lt_salv_columns_table    TYPE REF TO cl_salv_columns_table,
        lt_salv_column_table    TYPE REF TO cl_salv_column_table,
        lt_salv_aggregations    TYPE REF TO cl_salv_aggregations,
        lt_salv_aggregation      TYPE REF TO cl_salv_aggregation,
        lt_grid_fobj            TYPE REF TO cl_salv_form_layout_grid,
        lt_text                  TYPE REF TO cl_salv_form_text,
        lt_salv_wd_column_header TYPE REF TO cl_salv_wd_column_header.

  DATA : lt_footer_obj TYPE REF TO cl_salv_form_layout_grid,
        lt_grid      TYPE REF TO cl_salv_form_layout_grid.

  DATA : lv_month TYPE t247-ltx,
        lv_mon_h TYPE string.

***Setting Report Heading
  DEFINE header.
    call method lt_grid_obj->create_label
      exporting
        row    = &1
        column = &2
        text  = &3.
  END-OF-DEFINITION.

***Macro to change column heading
  DEFINE set_cl_hd.
    try.
        lt_salv_column = lt_salv_columns->get_column( &1 ).
        lt_salv_column->set_short_text( &2 ).
        lt_salv_column->set_medium_text( &3 ).
        lt_salv_column->set_long_text( &4 ).
        lt_salv_column->set_optimized( ).
      catch cx_salv_not_found.
        message i158 with text-026. "'Output Failed'.
    endtry.
  END-OF-DEFINITION.

***Calling Factory method
  TRY.
      CALL METHOD cl_salv_table=>factory
        IMPORTING
          r_salv_table = lt_salv_table
        CHANGING
          t_table      = gt_final_d.
    CATCH cx_salv_msg .
      MESSAGE i158 WITH text-003. "Output Failed.
  ENDTRY.


***Standard Toolbar
  CALL METHOD lt_salv_table->get_functions
    RECEIVING
      value = lt_salv_functions_list.

  CALL METHOD lt_salv_functions_list->set_all
    EXPORTING
      value = if_salv_c_bool_sap=>true.

***Setting Report Heading
  CREATE OBJECT lt_salv_form_layout_grid.

  lt_grid_obj = lt_salv_form_layout_grid->create_grid( row = 4
                                          column = 5
                                          colspan = 8 ).

  header 1 40 text-004.
  header 2 05 text-005.

  header 3 text-006.


  CALL METHOD lt_salv_table->set_top_of_list
    EXPORTING
      value = lt_grid_obj.

***Getting column values
  CALL METHOD lt_salv_table->get_columns
    RECEIVING
      value = lt_salv_columns.

***Calling Macro to change Column headers
  set_cl_hd 'DATE'      text-008 text-008 text-009 .
  set_cl_hd 'LFIMG_500' text-010 text-010 text-011 .
  set_cl_hd 'LFIMG_1'  text-012 text-012 text-013 .
  set_cl_hd 'LFIMG_2'  text-014 text-014 text-015 .
  set_cl_hd 'LFIMG_3'  text-016 text-016 text-017 .
  set_cl_hd 'LFIMG_5'  text-018 text-018 text-019 .
  set_cl_hd 'LFIMG_T'  text-020 text-020 text-021 .
  set_cl_hd 'QUOTA_AL'  text-022 text-022 text-023 .
  set_cl_hd 'QUOTA_P'  text-024 text-024 text-025 .

***Create an instance of Footer objects
  CREATE OBJECT lt_footer_obj
    EXPORTING
      columns = 1.

***Create a Grid with 5 rows and 3 columns
  CALL METHOD lt_footer_obj->create_grid
    EXPORTING
      row    = 5
      column  = 3
    RECEIVING
      r_value = lt_grid.

***Footer Macro
  DEFINE footer.
    lt_text = lt_grid->create_text(
        row    = &1
        column  = &2
        text    = &3 ).
  END-OF-DEFINITION.

  DATA : lv_total TYPE char10,
        lv_tot TYPE char12,
        lv_sub TYPE i,
        lv_f_mon TYPE string,
        lv_mon_number TYPE sy-datum.

  lv_tot = gs_final-lfimg_t.

  SHIFT lv_tot LEFT DELETING LEADING space.

  CONCATENATE '(' lv_tot ')' INTO lv_total.

  SHIFT lv_total LEFT DELETING LEADING space.


  lv_sub = pa_quota - gs_final-lfimg_t.

  footer 1 85 lv_f_mon.
  footer 1 87 pa_quota .
  footer 2 85 'Total Delivery'.
  footer 2 87 lv_total.
  footer 3 87 '___________'.
  footer 4 87 lv_sub.
  footer 5 87 '___________'.


  CALL METHOD lt_salv_table->set_end_of_list
    EXPORTING
      value = lt_footer_obj.

***Display
  CALL METHOD lt_salv_table->display.



ENDFORM.                    "DISPLAY_DATA

Cash journal recording failing to save entries

$
0
0

Hi guys

 

I am developing a program to upload payments into cash journal using t-code FBCJ surprising after picking up the data ,,it is failing to save.

 

instead of saving it says no data for batch input.I dont know where i am going wrong.

 

Please assist

 

Regards

Rejoice

 

Some experiences implementing Note 123774 - Cost planning: batch input sessions are terminated?

$
0
0

Hi all,

 

I have the following problem while processing the transaction kp06 in batch input session:

 

- Field KPPOB-VALUE(x) doesnot exist in the screen SAPLKPP0

- No Batch input data for screen SAPLKPP0

 

I found a note on the SAP support page:

 

Note 1234774 - Cost planning: batch input sessions are terminated.

 

Error: 00344 "No batch input data for screen &&"

 

SAP strongly recommends not to use batch input programs for manual planning.

 

Cause and prequisite: this is caused by a programm error.

 

Solution (just a part): the program change is not contained in the standard system, since other already existing batch input programs can possibly not executed anymore.

 

 

My questions are:

 

- have you already encountered this problem?

- how did you solve it?

- have you ever implement an sap note? if yes , how did you process?

- have you already implemented this note?, if yes, how did you process?

- how about the warnings from sap that this should be avoided?

- do you have an alternative solution for this problem?

- please just give me all information you have about this problem and how you solved it.

 

Thanks.


how to set value in memory in sap ABAP & get back after two to three days

$
0
0

Dear all ,

 

my requirement   is that i am executing one Z program   in which i am updating  creating order  using bapi  ,

after creating i want that  program when it will be next executed it should show  when it was last executed  .

but i dont want to store information of last execution of program in any table  .

how it can be done   .

 

Reason for this is i may execute that program with the gap of 1 day or two day not known fix .

i should get that value when i log  out and log in  again  .

 

 

 

regards

Deepak.

sm30 error no display authorization

$
0
0

I have two tables with same authorization group zfi.

 

In one table I can do sm30 and can maintain data no issues but for the 2nd table  it shows No row display authorization.

After doing su53  it is asking for an object S_tabu_dis with org_crit zbudget(which is a z one). If i assign s_tabu_dis with zbudget it works perfectly.

 

My question is the first table doesn't require anything and for the second table it is asking for some object.

 

 

 

So I started debugging  sm30

 

  it stops at function module VIEW_AUTHORITY_CHECK at line no 236 which is creating a object  org_crit_init

 

in which for the correct table org_crit_init return initial value but for the 2nd table it is org_crit value to be zbudget.

 

Authorization is correct.

sm30 table maintenance generator I am attaching.

Relationship between /SAPTRX/EH_INFO and /SAPTRX/EVM_PAR table

$
0
0

Hi to all,

 

 

Please can any one share some light on it.

 

What is the relationship between /SAPTRX/EH_INFO (Event Handler Info Parameter Table) table and /SAPTRX/EVM_PAR (Event Message: Event Handler Parameters) table in Event Management (SCEM).

 

I shall be thankful to you for this.

 

Regards

Pavneet Rana

BDC For collapsible area

$
0
0

Hi ,

 

I understand that i can't use BDC for SAP Enjoy transactions..

So if a screen has collapsible element and hierarchical structure and uses OOPs concepts for its UI , then does it come under SAP Enjoy Transaction?

And can't i use BDC for it ?

 

Thanks ,

Subhasis

getting Hash characters in the dataset for czech & polish Characters

$
0
0

Hi All,

 

we are trying to upload data consists of Czech or polish characters in to AL11. where we are getting # symbol in place of some czech or polish characters. i didn't find any encoding option with OPEN DATASET in SAP 4.6C.

 

Please throw some light on this issue.

 

 

Many thanks,

 

 

Regards,

Kiran

BADI Implementation against a filter value

$
0
0

Hi Experts,

 

I want to know the steps to get the implementation details from a filter value name.

CATS0005 EXIT NOT TRIGGERED FROM CAT2 TRANSACTION

$
0
0

Hi,

 

I have added a new field(WBS Description) in CI_CATSDB include and made SPRO config to include the added field in Worklist and Data entry selection.
I have implemented Exit CATS005 but it is not getting triggered to display WBS description when i execute CAT2 transaction this exit is not getiing called at all. Can u please help out.


Field value not populated using F4IF_INT_TABLE_VALUE_REQUEST

$
0
0

Hi experts,

 

I am using F4IF_INT_TABLE_VALUE_REQUEST to get the F4 functionality.

But the selected field is not populating in the selection screen.

 

Can any body help me.

 

Thanks

Sudheer

send email in ca02

$
0
0

hi expert ,

this is my scenario:

i want to whenever my users in transaction ca02 change status or change description of every thing send email to some people,

how can  i do this?

thanks for your advise

best regards

field symbol assigning a table type

$
0
0

hi

i dont understand creating a data object with create data type ref to and assigning the same to fieldsymbol?i can create a internal table type and using assign statement i can assign it to fieldsymbol but what is the advantage of assigning the same using type ref to :

1)

2)

DATA: <lfs> TYPE ANY TABLE.

 

data: it_table type table of ty_table.

assign (it_table) to <lfs>.

 

what is the difference between the above two types of assignments?

i am unable to figure out which is better and why...

Multiple chart generation of one screen

$
0
0

Hi Expert,

 

Can we generate multiple chart in one screen. means in one single screen one chart will display after that another  chart will display on the below of the first chart and this process is continuous until 9 or 10 chart display.

I am able to chart first chart one screen using IGS(internet graphical Services) but we are looking that multiple chart generate on screen .

 

Please provide your valuable information on this issue.

 

Thanks

Rajeev

BACK SIDE of invoice it should be print terms & Conditions-smartforms

$
0
0

Sap Guru's,

 

I have a smartform it's printing output as invoice.

Now my requirement is BACK SIDE of invoice it should be print terms & Conditions.

If i will select DUPLEX mode then it will print both sides But how can i will print terms & Conditions back side of the invoice. (Invoice have two pages)

 

So how can i achieve this.

Thanks in Advance.

 

BR

Shabareesh

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>