We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] bapi_po_change in SAP

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by madhira786 (consultant)
on Sep 11 at 10:29 AM
Mark this reply as helpfulMark as helpful
Item-quantity = 'x'
Itemx-quantity = 'x'
Should be enabled


M.N.K.Ramakrishna
Sent from my iPhone


On Sep 11, 2010, at 7:42 AM, "meenugoel via sap-dev" <sap-dev@Groups.ITtoolbox.com
> wrote:

> Posted by meenugoel (sap abap junior consulatnt)
> on Sep 11 at 10:10 AM Mark as helpful
> Hello,
> Thanks for your response. When I run my code, new quantity has been
> added to previous qty in purchase order.
> Suppose existing qty. in po for one item is: 50 and I want to change
> it to 60.
> I pass 60 in my code..so system is doing 50 60. But I want to change
> it to 60 only.
>
> Please help me out.
>
> DATA :RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE,
> ITEM TYPE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
> ITEMX TYPE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
> POSCHEDULE TYPE BAPIMEPOSCHEDULE OCCURS 0 WITH HEADER LINE,
> POSCHEDULEX TYPE BAPIMEPOSCHEDULX OCCURS 0 WITH HEADER LINE....
>
> DATA: EBELN TYPE EKKO-EBELN VALUE '4500003842'.
> DATA: EBELP TYPE EKPO-EBELP VALUE '10' .
>
> ITEM-PO_ITEM = EBELP.
> *item-DELETE_IND = 'X'.
> ITEM-NET_PRICE = 200.
> *item-QUANTITY = 11.
> APPEND ITEM TO ITEM.
>
> ITEMX-PO_ITEM = EBELP.
> ITEMX-PO_ITEMX = 'X'.
> *itemx-DELETE_IND = 'X'.
> *itemx-QUANTITY = 'X'.
> ITEMX-NET_PRICE = 'X'.
> APPEND ITEMX TO ITEMX.
>
> POSCHEDULE-PO_ITEM = EBELP.
> POSCHEDULE-QUANTITY = 11.
> APPEND POSCHEDULE TO POSCHEDULE.
>
> POSCHEDULEX-PO_ITEM = EBELP.
> *poschedulex-PO_ITEMX = 'X'.
> POSCHEDULEX-QUANTITY = 'X'.
> *poschedulex-COM_QTY = 'U'.
> APPEND POSCHEDULEX TO POSCHEDULEX.
>
>
> CALL FUNCTION 'BAPI_PO_CHANGE'
> EXPORTING
> PURCHASEORDER = EBELN
> TESTRUN = ' '
> TABLES
> RETURN = RETURN
> POITEM = ITEM
> POITEMX = ITEMX
> POSCHEDULE = POSCHEDULE
> POSCHEDULEX = POSCHEDULEX
>
> .
>
> CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
> EXPORTING
> WAIT = 'X'
> * IMPORTING
> * RETURN =
> .
>
>
> ---------------Original Message---------------
> From: R. Neal Wilhite
> Sent: Thursday, September 09, 2010 10:12 AM
> Subject: bapi_po_change in SAP
>
> > I'd like to, but you are going to have to give more information.
> >
> > Can you give us a snippet of your code where you define the values
> being sent to your BAPI...
> >
> > Neal

__.____._
Copyright © 2010 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
In the Spotlight
Toolbox.com for iPhone: Ask Questions & Get Answers Anywhere. Use the New iPhone App
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language