2006 Mar 09 1:47 PM
Hi
I have Problem in BDC of ME22, While Changing Confirmations.
As there is not any position field in Table Control, using which i can determine the Position of row that is to be updated.
For example there are ROWS
Confiormation----Time--
Quantity
AB--
10
AB--
83
AB--
20
AB--
35
LA--
14
LA--
10
i want to change Quantity 83 to 63
How this can be achived.How to reach at the particular field of particular row.
Thanks in Advance.
Vijay Raheja
2006 Mar 09 1:51 PM
Hi Vijay,
Why not try BAPI <b>BAPI_PO_CHANGE</b>?
Eg:
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = l_purchaseorder
POHEADER =
POHEADERX =
POADDRVENDOR =
POADDRVENDORX =
TABLES
return = l_t_return
poitem = l_t_poitem
poitemx = l_t_poitemx
POADDRDELIVERY =
POADDRDELIVERYX =
poschedule = l_t_poschedule
poschedulex = l_t_poschedulex
POACCOUNT =
POACCOUNTX =
POCOND =
POCONDX =
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi
2006 Mar 09 1:51 PM
Hi Vijay,
Why not try BAPI <b>BAPI_PO_CHANGE</b>?
Eg:
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = l_purchaseorder
POHEADER =
POHEADERX =
POADDRVENDOR =
POADDRVENDORX =
TABLES
return = l_t_return
poitem = l_t_poitem
poitemx = l_t_poitemx
POADDRDELIVERY =
POADDRDELIVERYX =
poschedule = l_t_poschedule
poschedulex = l_t_poschedulex
POACCOUNT =
POACCOUNTX =
POCOND =
POCONDX =
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi
2006 Mar 09 2:26 PM
hi Rajasekhar Dinavahi
THanks for reply
Are you sure BAPI_PO_CHANGE can be used for Posting Confirmations Alsoi.e ACKNOWLEDGMENT AND ASN.
Reply..
VIjay RAheja
2006 Mar 09 2:41 PM
Hi Vijay,
The BAPI does everything that me22 can do.
The field BAPIMEPOITEM-CONF_CTRL may just be useful for you.
But I think the reply just above mine will be simpler to use.
Regards,
Ravi
2006 Mar 09 1:55 PM
Hi
Retrive value from data base then find out
row no in table control.
Then use variable var = 'table[' couter ']-field].
use in loop and change corresponding value by checking
codition.
Regards
vinod
2006 Mar 09 2:33 PM
There may not be a position button, but there's a field at the bottom (item - RM06E-EBELP) where you can enter an item number. It will then be the first line in the display (after pressing enter).
Rob
2006 Mar 09 2:56 PM
hi Rob Burbank
Thanks for Reply
But that is on first screen
After entering Item Number in That and then after selecting Confirmation for that Item using
Menu->Item->Confirmation->Overview
Then We come to final Table Control,Where i am facing Problem.There is neither Positioning Field nor Input Text Box as on First Screen.
Any FUrther Help on That would be appreciated.
Thanks
VIjay RAheja
2006 Mar 09 3:03 PM
There may be some configuration issues here. In another of our instances I get a display with no item box at the bottom of the first screen. Could you tell us if there is an item box on the first screen of the display (not the confirmation screen).
Rob
2006 Mar 09 2:41 PM
Hi Vijay,
There is a item field right bottom with screen data as <b>program:SAPMM06E
Screen no: 0120
Field: RM06E-EBELP</b>
Use this to go to that line.When you give the item no. say for your example it is item 20.Give field value as 20 & that line becomes the first line for input.
2006 Mar 09 2:47 PM
Hi Vijay,
You can use function module :'ME_CONFIRMATION_UPDATE' to update confirmations.
CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
EXPORTING
I_EBELN = PO_NO
TABLES
XEKES = ZZEKES
YEKES = YYEKES.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'W'.
PO confirmations will create in a particular Order .
Regards,
Lanka