Ansicht
Dokumentation

/CPD/PWS_RCB_DLI_PROCESS_ST - Get Processing Status

/CPD/PWS_RCB_DLI_PROCESS_ST - Get Processing Status

ROGBILLS - Synchronize billing plans   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

When a billing document is created against a sales item, there is an entry created in the AD01DLI table, with a unique DLI number. Note that this DLI number is not the same as the Unique DLI ID).

Pass OBJNRas VB to AD01DLIand fetch all the DLI numbers from this table and pass these DLI numbers to the AD01DLIEFtable. Then, fetch all billing documents created for each DLI number, along with the corresponding values of the FKDAT_ACTIVE and DOPENfields.

If the logic to set the processing status is based on FKDAT_ACTIVE and DOPEN, there could be several entries in the AD01DLIEFtable for each DMR. The final status for each sales document item can be calculated by looping all entries in the AD01DLIEFtable and finding any of the following combinations:

Rejected,,,,Deleted,,,,Billed from DMR,,,,Billed

DOPEN = 'X' ,,DOPEN = 'D',,FKDAT_ACTIVE = 'X',,DOPEN = space,,RESULT

No,,,,,,No,,,,,,No,,,,,,,,No,,,,,,Open

Yes,,,,,,No,,,,,,No,,,,,,,,No,,,,,,Open

Yes,,,,,,Yes,,,,,,No,,,,,,,,No,,,,,,Open

Yes,,,,,,Yes,,,,,,Yes,,,,,,,,No,,,,,,Closed

No,,,,,,No,,,,,,Yes,,,,,,,,No,,,,,,Closed

Yes,,,,,,Yes,,,,,,Yes,,,,,,,,Yes,,,,,,Processed

Yes,,,,,,No,,,,,,Yes,,,,,,,,Yes,,,,,,Processed

No,,,,,,Yes,,,,,,No,,,,,,,,No,,,,,,Processed

No,,,,,,Yes,,,,,,Yes,,,,,,,,No,,,,,,Processed

No,,,,,,Yes,,,,,,Yes,,,,,,,,Yes,,,,,,Processed

No,,,,,,No,,,,,,Yes,,,,,,,,Yes,,,,,,Processed

No,,,,,,No,,,,,,No,,,,,,,,Yes,,,,,,Processed

Example

Notes

Further information





Parameters

EV_OBJNR
EV_STATUS
IV_BILL_DATE
IV_DLIID
IV_EVENT_TYPE
IV_POSNR
IV_VBELN

Exceptions

NOT_FOUND

Function Group

/SAPLPWS_RCB

CPI1466 during Backup   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2703 Date: 20240511 Time: 045129     sap01-206 ( 43 ms )