Skip to Content

How to put req object type into a internal table

Hi,

       I have copied and modified leave request workflow (WS12300111) 

       Now i am trying to get values from req object into an internel table .

      I have tried swc_get_element container macro and used object but i can't catch the values into an internal table  .

     I used a BOR object type for this .

Thanks in advance everyone

p3424.JPG (32.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 19, 2015 at 12:32 PM

    Show the abap you used. Showing the container doesn't help much.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2015 at 07:50 PM

          I have tried swc_get_element container macro and used object but i can't catch the values into an internal table  .

         I used a BOR object type for this .

    The leave request is a class, using BOR here is like hooking a caravan onto a Ferrari. As Rick said, share what you're doing (and more importantly, what you're trying to accomplish).

    Regards,

    Mike

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2015 at 11:53 AM

    Hi,

       I need to get BEGDA from the atts to a variable.. But when is macro swc_get_table container is not working for me i have tried object too .. but none  is working..

    I tried to bind the ATTS - name and value to different containers and that is working fine but i couldn't get it in BOR object


                                     I'm using BOR object because i have to convert date from to a string like this 'BEGIN DATE<$>15-09-2015 '  

       (Sorry I am new to abap i'm sorry if i couldn't help much please tell me what more you need to know more)

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Toney,


      I would seriously suggest getting help from someone locally, this is basic ABAP. There's nothing wrong with being new to ABAP, or asking here, but it could take a long time to do over the internet what you can solve in 5 minutes with another developer at your desk.

      To get a concatenated value from an object, create a functional method

        METHODS: get_date_with_stuff RETURNING VALUE(r_date) type DATS.

      Then in your method implementation do your string bit:

      METHOD get_date_with_stuff.

        r_date = me->begdate && ' Stuff'.

      ENDMETHOD.


      and in your using program call it:

        ...

        my_stuffed_date = myobj->get_date_with_stuff( ).

         ...



      Regards,

      Mike