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

To update table BBP_PDHGP

Dear all,

I have a scenario to change the posting date in table BBP_PDHGP. I am using FM BBP_PD_CONF_UPDATE by passing the gui_id and i_save as 'X'.

This function module however does not return any error and executes but the posting date in this table remains same.

Please let me know whether I am using the right function module Or should I use some other function module??

Thanks in advance,

Regards,

Suman.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2007 at 07:53 AM

    Hi

    Please provide complete Business requirements in your next reply.

    Anyways, Yo ucan use the standard SRM Function module - <u>BBP_PROCDOC_UPDATE</u> to get it working.

    Regards

    - Atul

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Well when I copy paste the code in a test executable program and execute it,then, I do not get the dump. But when I put the same program in a method of the busniess object and call it from Workflow as background task, the workitem is in state 'In Process' and a short dump being issued.

      Please find the Code I have used below:

      CALL FUNCTION 'BBP_PROCDOC_GETDETAIL'
        EXPORTING
          i_guid   = guid
        IMPORTING
          e_header = e_header
        TABLES
          e_item   = i_item.
      
      IF e_header-posting_date_fi LT sy-datum.
        e_header-posting_date_fi = sy-datum.
      ELSE.
        EXIT.
      ENDIF.
      
      
      CALL FUNCTION 'BBP_PROCDOC_UPDATE'
        EXPORTING
      *      i_save     = 'X'
          i_header   = e_header
          iv_with_change_version = ' '
        IMPORTING
          es_header  = es_header
        TABLES
          i_item     = i_item
          e_messages = e_message.
      
      CALL FUNCTION 'BBP_PROCDOC_SAVE'
        EXPORTING
          iv_workitem_id = '000000000000'
          iv_header_guid = es_header-guid
          iv_object_type = es_header-object_type.
      
      COMMIT WORK.  " AND WAIT.

      If there is something wrong in the code then direct execution should not also work. Please let me know if anything extra has to be added in the code.

      Regards,

      Suman

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.