cancel
Showing results for 
Search instead for 
Did you mean: 

schema not pulling buffer documents

Former Member
0 Kudos

I have created a new schema that consists of 700+ existing expense types. The business just wanted a different grouping of them all together. We are testing this new schema in QA. There are 1000's of documents in the buffer (verified through PRCCD and PRTC), however, when a PERNR is selected that is known to have documents and the new schema is selected, this message is given:

For PerNo 00123456 there are no documents in

document buffer.

However, if another (existing) schema is selected for the same PERNR, the buffer documents are selected succesfully.

Am I missing a config step that ties the buffer to the schema?

Accepted Solutions (1)

Accepted Solutions (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Kim,

I can only help with a debugging approach. Include MP56TF30 Form ccc_selektion, this is the only place where this message is thrown. If you'd debug this one, you can figure out what exactly happens and why.

Roughly, expense types of the schema will be checked against the expense types of the buffer documents. Then they are further processed. I wager something already goes wrong at this point of coding:

IF sy-tcode CS 'TRIP'
     OR sy-tcode = 'PR01'
     OR sy-tcode = 'PR02'
     OR sy-tcode = 'PR05'.
* get valid expense types for scheme
* get limited exp_types
     CALL FUNCTION 'PTRV_GET_EXPTYPES_BY_SCHEME'
       EXPORTING
         i_schem     = t706s-schem
         i_morei     = morei
         i_beg_date  = ptp02-datv1
       IMPORTING
         et_receipts = lt_exp_types
       EXCEPTIONS
         no_receipts = 1
         OTHERS      = 9.

     IF sy-subrc = 0.
       MESSAGE i587.
* limit the list of expense types
       LOOP AT ccbel_local.
         lv_tabix = sy-tabix.
         READ TABLE lt_exp_types
              WITH KEY spkzl = ccbel_local-spkzl
              TRANSPORTING NO FIELDS.
         IF sy-subrc <> 0.
           DELETE ccbel_local INDEX lv_tabix.
         ENDIF.
       ENDLOOP.
     ENDIF.
   ENDIF.

If everything is deleted here from ccbel_local or flagged for deletion, the message you indicated in your opening post will be thrown lateron.

Cheers, Lukas

Former Member
0 Kudos

Thank you Lukas! I didn't even need to get into debug to figure this out.

This statement: Roughly, expense types of the schema will be checked against the expense types of the buffer documents.

helped me realized that the default expense type on the buffer documents (Z000) was not included as part of the new schema.

Once I added the default expense type, the buffer documents are now available!

Thanks again.

kim

Answers (0)