cancel
Showing results for 
Search instead for 
Did you mean: 

how to feel interal table in Workflow?

Former Member
0 Kudos

Hi Experts,

Right now i m creating one workflow in which i have an internal table with 2 fields. This internal table is multiline internal table.

But the thing is i dont know how to feel entry into the internal table. I hv created one workarea with 2 fields. but i m not getting that how i will pass those values into that work area :(.

after passing into the workarea i think i will be able to append values into the internal table.

please help me out with this problem.

if more clarifications are required then also ask.

Thank you in advance.

Regards,

Hetal....

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi experts,

Thankx for ur quick replys.

let me bit more clear.

I want to generate one object key.

For that I m using object BUS3060 and method CONCATENATEKEY.

in that in the BAPI_OBJCL_CONCATENATEKEY_KEY bapi, i have to pass following data into the table OBJECTKEYTABLE.

The values are :

DOKAR STY

DOKNR STYLEDOC50

DOKVR 000

DOKTL 00

so in out put it should give me key like STYSTYLEDOC50 00000

So now tell me how i should pass values into this table.

Here DOKAR and DOKNR i will get at runtime from DRAW Object.

I think now u ppl are somewhat clear about the problem.

Regards,

Hetal.

Former Member
0 Kudos

Hey Hetal,

Thanks for clearing the question.

Well, youur requirement is that you want to pass the values

DOKAR STY

DOKNR STYLEDOC50

DOKVR 000

DOKTL 00

in a table.

It is very very simple.

Well, I think you need to pass these values from the workflow container to the function module within the method.

Well, first you have to pass the values ifirst to the workflow container, If you have then it is lovely otherwise you have to pass programatically.

If you workflow container is triggered by events:-

Make a container element in the workflow container and the event container.

Do the bindings so that the values of the event container table goes to the workflow container table.

Now, while populating the event container in the code do the following things:

Create another internal table with the same structure in the code and then populate the table.

Create a container table with the type SWCONT.

now write the statement SWC_SET_TABLE <container table> 'ELEMENT NAME of the table in the event container' Internal table.

This will set the values from the code to the event container.

If your workflow container is being triggered by function module:-

Similarly for this case also:-

Now, while populating the event container in the code do the following things:

Create another internal table with the same structure in the code and then populate the table.

Create a container table with the type SWCONT.

now write the statement SWC_SET_TABLE <container table> 'ELEMENT NAME of the table in the event container' Internal table.

This will set the values from the code to the event container.

If you are using some activity within the workflow to populate the table with those values:-

Within the method you have to write the code:

Now, while populating the event container in the code do the following things:

Create another internal table with the same structure in the code and then populate the table.

Create a container table with the type SWCONT.

now write the statement SWC_SET_TABLE <container table> 'ELEMENT NAME of the table in the event container' Internal table.

This will set the values from the code to the event container.

Now in the activity and the method you have to do the bindings and the values will be passed.

You can see the values in the workflow container.

I think that will solve the problem.

Warm Regards.

Abhijit.

Former Member
0 Kudos

Hi Hetal,

A

workarea into internal table

move wa-field1 to internal_table-field1.

move wa-field2 to internal_table-field2.

append...

B

internal table into workarea

loop at internal_table.

move (corresponding) internal_table to workarea.

...

endloop.

C.

I assume you habe an internal table in workflow definition.

1. you can fill the table by starting the workflow:for example SWW_WI_START (CONTAINER)

2. you can move the table content from workflow to method container:SWC_GET_TABLE

3. you can move the table content from method to workflow container: SWC_SET_TABLE

- Have you created you internal table in task container as well?

Would you please describe where you would like to fill the table or what you would like to do exactly to be able to help you.

Regards

Tibor

Former Member
0 Kudos

Hi Hetal,

i'm not sure if I understand your question. If it's a multinline containerelement you have created in the workflow builder, you can add entries to it using bindings from you workflow tasks or containeroperations, where you also can add values to your multiline container. Finally you can also an the workflow macro SWC_SET_ELEMENT CONTAINER to fill the container from your ABAP (just remember to maintain the parameters accordingly)

Hope it helps

Kind regards

Mikkel

Former Member
0 Kudos

Hi,

Can you be a bit clear as to what is the actual scenario on which you are working on? may be that will help to get an idea of what is happening. Like when are you passing the internal table to the workflow, in the method or with event?

Regards,

Sam