cancel
Showing results for 
Search instead for 
Did you mean: 

sd_partner_update can any one please help me out

Former Member
0 Kudos

Hi experts,

sd_partner_update what actually this function module does?

ws_parnter_update what it does?

if any one knows about those functionality can you please help me out.

for those functionality i didnt find the documentation also.

thanks in advance,

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member621510
Participant
0 Kudos

Try to use the fm 'SD_PARTNER_UPDATE', to update the partner details in sales order.

Check the below code....

CALL FUNCTION 'SD_PARTNER_READ'

         EXPORTING

              f_vbeln  = vbeln

              object   = 'VBPA'

         TABLES

              i_xvbadr = i_xvbadr

              i_xvbpa  = i_xvbpa

              i_yvbadr = i_yvbadr

              i_yvbpa  = i_yvbpa

              i_xvbpa2 = i_xvbpa2

              i_yvbpa2 = i_yvbpa2.

    READ TABLE i_xvbpa WITH KEY parvw = 'SP  '.

    IF sy-subrc NE 0. "Delivery does not have any Forwarding Agent

      CLEAR i_xvbpa.

      i_xvbpa-vbeln = vbeln.

      i_xvbpa-parvw = 'SP  '.

      i_xvbpa-lifnr = lv_lifnr.

      i_xvbpa-updkz = 'I'.  "For Insert new row

      APPEND i_xvbpa.

      CALL FUNCTION 'SD_PARTNER_UPDATE'

           EXPORTING

                f_vbeln  = i_vbkok-vbeln_vl

                object   = 'VBPA'

           TABLES

                i_xvbadr = i_xvbadr

                i_xvbpa  = i_xvbpa

                i_yvbadr = i_yvbadr

                i_yvbpa  = i_yvbpa

                i_xvbpa2 = i_xvbpa2

                i_yvbpa2 = i_yvbpa2.

      IF sy-subrc = 0.

        COMMIT WORK.

      ENDIF.

JL23
Active Contributor
0 Kudos

Have an eye on the date when the discussion was posted: Dec 6, 2007 6:33 AM

and if this is such an old post then check the user to see when he was last online:

Last Logged In:Aug 11, 2008 10:58 AM

No problem if you update an open question with a definitive answer, but asking a user to check and try 7 years after is probably too late