Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: Y Report is being faild and giving dump

$
0
0

Hi Ganesh,

     Try Creating secondary Index on that table .Hope it might reduce a bit of perforamnace.

Thanks ,

Vijay.


Re: ALV showing repetitive lines despite line items the same

$
0
0

Hi Siong ,

     The sorting logic has to be corrected You may not be deleting the Repeated Entires.Do Proper looping based on the Keyfields.

Thanks,

Vijay.

Re: ALV print preview different from report

$
0
0

Hi Experts,

 

Is it possible to bring the opening and closing figures in either left or right in alv grid? Suggestions are highly appreciated.

 

 

 

Regards

Purnand

Re: How to resolve Idoc error status 02

$
0
0

Hi You use the Latest version of which the IDoc is present and check which version your IDES system is.Also Please check all the basic setting of Idoc and Check if any notes have to be implemented.

https://scn.sap.com/thread/791896 Please check if this link is helpful.

Thanks,

Vijay.

Re: Submit progrm for FBL5n

$
0
0

Hi,

 

Can you please elaborate the requirement? Why are you using submit? Why don't you copy the standard program and make changes into that?

 

 

 

 

Regards

Purnand

Re: Submit progrm for FBL5n

$
0
0

Hi anurag ,

 

Create an Implicit enhancement on FBL5N report code i.e RFITEMAR

 

Export it_pos

 

and Import after the submit.

ABAP Query or Reports (Intr + Normal)

$
0
0

Hi @all,

 

just to know from you

 

is it time to switch to abap queries or remain relating to use Reports?

 

are they enough capable to acquire all the efficiency of Reports?

 

or should i still remain sticked to reports

 

please explore

Thanks,

Manu Anand

Re: ALV filter- In activate case Sensitive nature

$
0
0

Sameera,

 

You can use lowercase flag on fieldcat:

 

DATA: it_fieldcat     TYPE slis_t_fieldcat_alv,

...

 

FORM monta_layout_alv.

  DATA: la_fieldcat LIKE LINE OF it_fieldcat.

...

  CLEAR: la_fieldcat.

  la_fieldcat-fieldname   = 'DESC_MOD'.
  la_fieldcat-tabname     = 'IT_SAIDA'.
  la_fieldcat-seltext_m   = 'Modalidade'(804).
  la_fieldcat-lowercase   = 'X'.

  APPEND la_fieldcat TO it_fieldcat.

...


Re: How to read IM53 output

$
0
0

IM53 transaction usually calls IM42/IM43 or some other t-code. So, the final display screen of IM53 is actually not that of IM53's.
This is the reason why you don't get any output in LIST_FROM_MEMORY.

Re: Runtime error for select statment in COEP table

$
0
0

If you read the post I linked to you can see it isn't a hard and fast rule.

what table name for payment usage in fb03

$
0
0

hi,

 

 

Please let me know what is the table name for payment usage in fb03.

 

 

 

Thanks & Regards,

Balakrishna Gajula.

Re: ALV showing repetitive lines despite line items the same

$
0
0

hi

You can do this by the following below code

 

LOOP AT IT_FINAL INTO WA_FINAL.
AT END OF CONNID.
SUM.
WA_FINAL2-CARRID    = WA_FINAL-CARRID.
WA_FINAL2-CONNID    = WA_FINAL-CONNID.
*WA_FINAL2-FLDATE    = WA_FINAL-FLDATE.
WA_FINAL2-PRICE     = WA_FINAL-PRICE.
*WA_FINAL2-CITYFROM  = WA_FINAL-CITYFROM.
APPEND WA_FINAL2 TO IT_FINAL2.
CLEAR WA_FINAL2.
ENDAT.
ENDLOOP.

 

Reward if you find w8

 

Thanks & Regards

RKarmakar


event handling in OOABAP

$
0
0

REPORT  ZCL_VEHICLE1.

 

INTERFACE if_status.

  METHODS write_attributes.

ENDINTERFACE.

 

CLASS cl_vehicle DEFINITION ABSTRACT.

  PUBLIC SECTION.

    INTERFACES if_status.

    METHODS: speed_up IMPORTING step TYPE i,

             stop.

  PROTECTED SECTION.

    DATA: speed     TYPE i,

          max_speed TYPE i VALUE 50.

ENDCLASS.

 

CLASS cl_vehicle IMPLEMENTATION.

  METHOD speed_up.

    speed = speed + step.

    IF speed > max_speed.

      speed = max_speed.

    ENDIF.

  ENDMETHOD.

  METHOD stop.

    speed = 0.

  ENDMETHOD.

  METHOD if_status~write_attributes.

    WRITE: / 'Speed =',     speed,

             'Max-Speed =', max_speed.

  ENDMETHOD.

ENDCLASS.

 

CLASS cl_truck DEFINITION INHERITING FROM cl_vehicle.

  PUBLIC SECTION.

    METHODS: constructor,

             if_status~write_attributes REDEFINITION.

ENDCLASS.

 

CLASS cl_truck IMPLEMENTATION.

  METHOD constructor.

    super->constructor( ).

    max_speed = 100.

  ENDMETHOD.

  METHOD if_status~write_attributes.

    WRITE: / 'Truck'.

    super->if_status~write_attributes( ).

  ENDMETHOD.

ENDCLASS.

 

CLASS cl_ship DEFINITION INHERITING FROM cl_vehicle.

  PUBLIC SECTION.

    DATA name TYPE string READ-ONLY.

    METHODS: constructor IMPORTING name TYPE string,

             if_status~write_attributes REDEFINITION,

             speed_up REDEFINITION.

    EVENTS damaged.

ENDCLASS.

 

CLASS cl_ship IMPLEMENTATION.

  METHOD constructor.

    super->constructor( ).

    max_speed = 30.

    me->name = name.

  ENDMETHOD.

  METHOD if_status~write_attributes.

    WRITE: /  name.

    super->if_status~write_attributes( ).

  ENDMETHOD.

  METHOD speed_up.

    speed = speed + step.

      IF speed > max_speed.

        max_speed = 0.

        stop( ).

        RAISE EVENT damaged.

      ENDIF.

  ENDMETHOD.

ENDCLASS.

 

 

CLASS cl_helicopter DEFINITION." CREATE PRIVATE.

  PUBLIC SECTION.

    CLASS-METHODS: class_constructor,

                   get_reference RETURNING VALUE(helicopter_ref)

                                 TYPE REF to cl_helicopter.

    INTERFACES if_status.

    METHODS RECEIVE FOR EVENT DAMAGED OF cl_ship

                    IMPORTING sender.

  PRIVATE SECTION.

    CLASS-DATA heli TYPE REF TO cl_helicopter.

    DATA caller TYPE string VALUE 'none'.

ENDCLASS.

 

CLASS cl_helicopter IMPLEMENTATION.

  METHOD class_constructor.

    CREATE OBJECT heli.

  ENDMETHOD.

  METHOD get_reference.

    helicopter_ref = heli.

  ENDMETHOD.

  METHOD if_status~write_attributes.

    WRITE: / 'Helicopter called by:', caller.

  ENDMETHOD.

  METHOD RECEIVE.

    caller = sender->name.

    MESSAGE 'Call to Helicopter' TYPE 'I'.

  ENDMETHOD.

ENDCLASS.

 

 

* Data declarations

START-OF-SELECTION.

DATA: truck  TYPE REF TO cl_vehicle,

      ship1  TYPE REF TO cl_ship,

      ship2  TYPE REF TO cl_ship,

      heli   TYPE REF TO cl_helicopter,

      heli1 TYPE REF TO cl_helicopter,

      status TYPE REF TO if_status,

      status_tab LIKE TABLE OF status.

 

* Implementation

  CREATE OBJECT: truck TYPE cl_truck,

                 ship1 TYPE cl_ship EXPORTING name = 'Morning Glory',

                 ship2 TYPE cl_ship EXPORTING name = 'Titanic'.

 

         heli  = cl_helicopter=>get_reference( ).

         heli1 = cl_helicopter=>get_reference( ).

 

APPEND: truck TO status_tab,

          ship1 TO status_tab,

          ship2 TO status_tab,

          heli TO status_tab,

          heli1 to status_tab.

 

SET HANDLER heli->receive FOR: ship1.

  SET HANDLER heli1->receive FOR: ship2.

* SET HANDLER heli->receive FOR ALL INSTANCES. " all objects

 

truck->speed_up( 60 ).

  ship1->speed_up( 40 ).

  ship2->speed_up( 40 ).

 

 

  LOOP AT status_tab INTO status.

    status->write_attributes( ).

    ULINE.

  ENDLOOP.

 

In this above  example..  class vehicle is a super class and truck and ship are sub classes and class helicopter is event handler class.

when i execute this program output is

 

Truck

Speed =         60  Max-Speed =        100

 

Morning Glory

Speed =          0  Max-Speed =          0

 

Titanic

Speed =          0  Max-Speed =          0

 

Helicopter called by: Titanic

 

Helicopter called by: Titanic


here Helicopter called by (both are getting as ' titanic' but i need to get one 'morning glory' ship) when both ships cross speed above 30.

and help me regarding parameters , i don't want to give default parametrs like this truck->speed_up( 60 ) , i want to dynamically. plz help me as am new to OOABAP.

 

thanks

Re: what table name for payment usage in fb03

$
0
0

Can you please elaborate or show a screen shots generally all the posting information is present in BKPF and BSEG tables.

Thanks,

Vijay.

Re: Idoc type INVOIC02 not coming in F4 help

$
0
0

Hello ,

Which field type you have declared as Idoc type.Please check in that table if its present.

Thanks ,

Vijay.


Re: BAPI or FM to create Price Condition

Re: RV_CONDITION_COPY with Scales

Re: Only one value is updated in KONM Table

Re: INFOSET ILLEGAL join conditions

$
0
0

Hi,

 

In table 1 it is CHAR and in table2 NAMC.

 

I am not so familiar with ABAP coding it would be really helpfull if you provide e the code for the same..

 

Thanks,

 

Bobby

Project Definition Description to copied as WBS Description to Level 1 automatically

$
0
0

Dear all,

 

In CJ20N transaction Project Definition Description to copied as  WBS Description to be copied for Level 1 automatically

from level 2 onwards it should come with comapny code automatically.

 

Eg:Project def description"Testing Project".

In level-1 WBS Element description it should be "Testing Project".

In level2-wbs element description it should be ""Testing Project-1100".

 

Here 1100 is company code from assigment tab.

 

 

Regards,

Nageswara Rao

Viewing all 10425 articles
Browse latest View live


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