Skip to Content
0

Workflow fetching amount of only first line item of accounting document

Feb 03, 2017 at 02:42 PM

107

avatar image

Hi,

I have created a custom workflow for accounting document posting through F-02. I have used custom BO of BKPF. Now the problem is whenever user posts a document workflow picks amount of only first line item. How can I fetch total amount of document?

Any suggestions..

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Rick Bakker
Feb 03, 2017 at 07:07 PM
0

Hello,

What do you mean by workflow only picking up the first line item? Maybe the triggering event is wrong - what object or class is being used?

Perhaps you chose lineitem level instead of header level.

regards

Rick

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Rick,

I am using header level only and i am using BKPF boject and workflow is triggered when document is created.

Thanks,

PS

0
Anjan Paul Feb 07, 2017 at 06:21 AM
0

Hi,

What code you wrote in custom BO, please share screenshot with details.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi,

I am done with all these things. While I was inspecting BO BKPF, checked attributes of this object which had one of the attributes SUB_ACCOUNTING_DOC.BSEG which picks just one first line item of the document. Please have a look at following screenshot.

Now amount returned is just that of first line item. Is there any way or FM to pick total ammount of document?

Regards,

PS

wf.png (24.3 kB)
0
Rob Dielemans Feb 07, 2017 at 04:29 PM
0

Hi,

Instantiate the Business Object in SWO1 and see where things go wrong.

Also check how you bind things in your workflow definition, especially multi-line elements.

Kind regards, Rob Dielemans

Share
10 |10000 characters needed characters left characters exceeded