Skip to Content
author's profile photo Former Member
Former Member

BDC for deleting delivery

hi All,

I am writing a BDC for removal of outbound delivery from manifest as

**--Record the BDC for deleting deliveries from Manifest

REFRESH bdcdata.

CLEAR bdcdata.

REFRESH messtab.

PERFORM bdc_dynpro USING 'SAPMV56A' '1011'.

PERFORM bdc_field USING 'BDC_CURSOR'

'VTTK-TKNUM'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=MM_TKAL'.

PERFORM bdc_field USING 'VTTK-TKNUM'

w_manifest.

PERFORM bdc_dynpro USING 'SAPMV56A' '1020'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=MM_UETP'.

PERFORM bdc_field USING 'BDC_CURSOR'

'VTTK-TDLNR'.

CALL TRANSACTION 'VT02N' USING bdcdata

MODE ws_mode

UPDATE ws_update

MESSAGES INTO messtab.

but if i run this the delivery is not getting deleted.

Please help.....

Thanks ,

Ruchi Tiwari

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Posted on Sep 06, 2010 at 04:09 AM

    Hi,

    Is there any error U r getting??

    Regards,

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

    • REFRESH bdcdata.

      CLEAR bdcdata.

      REFRESH messtab.

      PERFORM bdc_dynpro USING 'SAPMV56A' '1011'.

      PERFORM bdc_field USING 'BDC_CURSOR'

      'VTTK-TKNUM'.

      PERFORM bdc_field USING 'VTTK-TKNUM'

      w_manifest.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '=MM_TKAL'.

      PERFORM bdc_dynpro USING 'SAPMV56A' '1020'.

      PERFORM bdc_field USING 'BDC_CURSOR'

      'VTTK-TDLNR'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '=MM_UETP'.

      CALL TRANSACTION 'VT02N' USING bdcdata

      MODE ws_mode

      UPDATE ws_update

      MESSAGES INTO messtab.

      try this code

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 04:18 AM

    Hi,

    Which mode you are using to run your BDC?

    Run in error mode and check if you are getting any error.

    Also, after running BDC check table 'messtab' if there are any error messages populated.

    Thanks,

    Archana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 06:05 AM

    Hi,

    Try running in foreground mode and check.

    Sujay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2010 at 06:23 AM

    hi

    Try to do the commit work after deleting

     
    CTU_PARAMS-RACOMMIT = ' X'. 
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 06:36 AM

    There would be a deletion indicator indicating that the document is deleted rather than the document being deleted completely ...

    Please check

    Regards,

    Lalit Mohan Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 06:48 AM

    Hi

    Please look at [http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery(VL02)|http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery(VL02)]

    This is precisely what you need.

    Thanks,

    Kaushik Roy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 06:49 AM

    Hi

    Please look at [http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery(VL02)|http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery(VL02)]

    This is precisely what you need.

    Thanks,

    Kaushik Roy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 14, 2010 at 03:06 AM

    not solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.