Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

SAP FIORI - Approve PR - No Data

$
0
0

Hi ,

 

The test User can see and approve PR pending in his Workflow using SAP Gui

 

 

PR2.jpg

 

When opening the app for PR Release, no data is shown.

After debugging the class:  CL_GBAPP_APV_PR_API we found that :

 

Bellow Select Statement  in table EBAN returns subrc 4 in method GET_LIST_PR_DETAILS .

 

This happens because  although table it_wiid_boident-field contains all the above shown PRs but Field  it_wiid_boident-object_line does not contain PR item nr.

From our understanding this field in filled with workflow details but our Workflow is not item-based but header based.

 

SELECT banfn bnfpo menge preis waers  ernam afnam peinh txz01 pstyp loekz FROM eban

INTO CORRESPONDING FIELDS OF TABLE lt_eban_data "matnr

    FOR ALL ENTRIES IN it_wiid_boident WHERE

    banfn = it_wiid_boident-object_id AND

    bnfpo =  it_wiid_boident-object_line.

 

 

The result of this selection is passed as result in the PR list of the app.

 

 

Even if we enhance the class and add the same selection without the item nr like this:

    " Get the Required information from EBAN

SELECT banfn bnfpo menge preis waers  ernam afnam peinh txz01 pstyp loekz

FROM eban

INTO CORRESPONDING FIELDS OF TABLE lt_eban_data "matnr

    FOR ALL ENTRIES IN it_wiid_boident

WHERE

    banfn = it_wiid_boident-object_id ."AND

*    bnfpo =  it_wiid_boident-object_line.

 

The list of PRs opens but the details cannot open and the app hangs.

While debugging we see that the method GET_ITEM_INFORMATION fails because of the empty ITEM NR.

 

PR1.jpg

 

Any Suggestions ?

 

Best regards


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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