cancel
Showing results for 
Search instead for 
Did you mean: 

How to put req object type into a internal table

0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

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)

former_member185167
Active Contributor
0 Kudos

Hello,

Please say:

1) what you are trying to do  (eg this is the input, this is the required output)

2) how you have tried to do it - with actual code

You don't need a BOR to convert a date.

regards

Rick

0 Kudos

Hi,

   I am not just converting the date .

   i am converting the date and concatenate the date with a string .

pokrakam
Active Contributor
0 Kudos

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

pokrakam
Active Contributor
0 Kudos

      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

former_member185167
Active Contributor
0 Kudos

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