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

Function module for updating the values in table VTTK

Hi,

I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.

Thanks in advance,

Priyanka.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 05, 2007 at 07:05 PM

    Try using BAPI_SHIPMENT_CHANGE.

    It seems that you'll need to populate the field HEADERDATA-SERVICE_AGENT_ID (structure BAPISHIPMENTHEADER) with the value that has to be assigned to the VTTK-TDLNR field and the field HEADERDATAACTION-SERVICE_AGENT_ID = 'C' (for Change). Naturally, the field SHIPMENT_NUM should have the shipment number (VTTK-TKNUM) in both structures.

    Good luck!

    Add a comment
    10|10000 characters needed characters exceeded

    • As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:

      DATA: BEGIN OF it_return OCCURS 0.
              INCLUDE STRUCTURE bapiret2.
      DATA: END OF it_return.
      
      CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
      <...>
        TABLES
      <...>
          return = it_return.
      
      LOOP AT it_return.
        MESSAGE
             ID      it_return-id
             TYPE    it_return-type
             NUMBER  it_return-number
         WITH
                     it_return-message_v1
                     it_return-message_v2
                     it_return-message_v3
                     it_return-message_v4.
      ENDLOOP.

      Hope this helps.

  • Posted on Jan 05, 2007 at 07:21 PM

    Hi Priyanka,

    Welcome to SDN.

    Please check this function modules.

    RV_SHIPMENT_UPDATE

    RV_SHIPMENT_UPDATE_DB

    Hope this will help.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ferry,

      You had suggested that I use RV_SHIPMENT_UPDATE in my report

      for changing the value of forwarding agent field of a particular shipment # in table VTTK . Cud u plz tell me how to use this function. Also I had read that this function for updating dates. Does it mean that it cannot be used for updating any other field other than one for date in table VTTK?

      Regards,

      Priyanka.

  • Posted on Jan 05, 2007 at 07:06 PM

    Duplicate - deleted

    Message was edited by:

    Jelena Perfiljeva

    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.