cancel
Showing results for 
Search instead for 
Did you mean: 

Export block document

Former Member
0 Kudos

Hi Everyone,

I need help.

You know that when a sales order is blocked by GTS due to SPL, Embargo or license, you cannot create delivery doc.

And when a delivery is blocked you cannot create a billing doc.

For debit note or credit note,

how can I block creating a billing doc when sales order is blocked by GTS???

Please advise.  Thank you

Accepted Solutions (1)

Accepted Solutions (1)

thomasrausch
Active Participant
0 Kudos

Hallo Junko,

maybe you can use OSS note 579357 or use the FM /SAPSLL/CD_STATUS_GET directly. With the FM you can determine the Status of the order in GTS.

For example

call function '/SAPSLL/CD_STATUS_GET'

  exporting

    iv_application_Level                  = 'SD0A'
    iv_sd_document_type                = vbak-vbtyp
    iv_sd_order_category                = vbak-auart

    iv_sd_document_number          = vbap-vbeln
    iv_sd_item_number                   = vbap-posnr

  exceptions

    subsequent_process_blocked  = 1

    others                                        = 2

If the sy-subrc <> 0, then the order is blocked and you can throw a message like   (e.g.

IF NOT ( SY-SUBRC IS INITIAL ).

  MESSAGS ID '/SAPSLL/PLUGINR3'

                     TYPE 'E'

                     NUMBER 102 WITH vbap-vbeln

                                                       vbap-posnr

                                                       'is blicked in GTS'

                     RAISING error.

Hope that helps.

Regards

Thomas

Answers (1)

Answers (1)

former_member215337
Participant
0 Kudos

Hi Dickerson,

Could you please elaborate more on your scenario? When do you do the Credit & Debit memo documents pass to GTS server I mean in which scenario you are transferring those documents into GTS?

I think it can be possible to block the Credit note & Debit note documents for further processing when they got blocked in GTS based on the Document type settings and Plug in settings in ECC itself.

Please give me more inputs for better understanding of your scenario so that I'll be able to give my thoughts on it positively.

With Regards

Srikanth

Former Member
0 Kudos

Hi Srikanth


Thanks for your reply.


We use D/N for repair cost that will also be deducted from license depreciation.

When regular sales orders are blocked in GTS, user cannot create delivery.

However, since D/N does not require delivery doc, billing doc can be created even D/N is blocked.


My question to you is how system can check sales order status when creating billing doc of D/N and C/N.