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

Delivery Creation for an STO - Help needed!!

I have a requirement to update an STO ( quantities etc) , subsequently create a Delivery for the changed STO .... Now , the processing is, of an Inbound IDoc by a Custom Function Module .... Initially I was creating the delivery with a BDC on VL10B ... it was working fine whenever we processed an IDoc template in WE19 or reprocess an IDoc using BD73... Now, whenever an actual IDoc is received from the external system , the VL10B transaction fails ( GUI exception is raised).... According to OSS note 310022 , VL10* transactions do not have GUI support .. the note also mentions that the solution to the problem is to call the background program RVV50R10C ....

I used a SUBMIT within my function module to RVV50R10C supplying the necessary selection parametes ... but the problem still persists .... In ST22 .. the dump for the rfc user is appearing as:

"The termination occurred in the ABAP program "CL_GUI_CUSTOM_CONTAINER=======CP"

in "CONSTRUCTOR".

The main program was "RVV50R10C ". "

Please help !!! Top priority problem!!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Apr 20, 2007 at 03:22 PM

    Try using the function module BAPI_DELIVERYPROCESSING_EXEC instead:

    Ex:

    form bapi_create_deliveries tables gtab_data structure zre029_crea_del
                                using  gw_ebeln
                                gw_tcode.
    
      data: ptab_request type  bapideliciousrequest occurs 0 with header line,
            ptab_items   type table of bapideliciouscreateditems,
            ptab_return  type table of bapiret2,
            pwa_request  type bapideliciousrequest.
    
      data: pw_error_occured,
            pwa_return type bapiret2,
            pwa_data   type zre029_crea_del.
    *        gw_frgzu   TYPE ekko-frgzu.
    
      constants: begin of pw_msgty,
                   error      like syst-msgty value 'E',
                   abend      like syst-msgty value 'A',
                   warning    like syst-msgty value 'W',
                   info       like syst-msgty value 'I',
                   success    like syst-msgty value 'S',
                 end of pw_msgty.
    
    ************************************************************************
      clear gtab_data.
      loop at gtab_data into gwa_data.
        ptab_request-document_type          = 'B'.
        ptab_request-delivery_date          = sy-datum.
        ptab_request-document_numb          = gw_ebeln.
        ptab_request-document_item          = gwa_data-ebelp.
        ptab_request-quantity_sales_uom     = gwa_data-menge.
        ptab_request-sales_unit             = gwa_data-meins.
        ptab_request-document_type_delivery = 'NL'.
        append ptab_request.
      endloop.
    
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
        tables
          request      = ptab_request
          createditems = ptab_items
          return       = ptab_return.
    
    * check protocol
      loop at ptab_return into pwa_return.
        if pwa_return-type = pw_msgty-error or
           pwa_return-type = pw_msgty-abend.
          message id pwa_return-id type pwa_return-type
                                  number pwa_return-number.
          pw_error_occured = 'X'.
          message e001(vl) with 'Unable to create deliveries, errors with BAPI!!!'.
          exit.
        endif.
      endloop.
    
      if pw_error_occured is initial.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
      endif.
    

    Leonardo De Araujo

    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.