‎2006 Nov 02 8:27 AM
Hi All,
Please suggest me on this problem.
I have to populate the field rv45a-etdat.
it is screen field in va02.
rv45a-etdat is the screen field of shcdule line for a perticular item.
when i run the calltransaction =PEIN okcode takes the cursor to that screen field .but the problem is have to selcect the perticuler item of sales order .how to process this. automatically how to select the desired item which is with me.
Please Kindly suggest.
Thanks in Advance.
Thanks&Regards.
Ramu.
‎2006 Nov 02 8:31 AM
try to findout okcode for the required item selecting by debuggin, insert this code in bdc flow , so that it can implement automatically when this screen field appears.
‎2006 Nov 02 8:41 AM
HI ramu,
While recording try with this.
1. display the order at the header level .
2. Place the corsor on the requried item and select the
left tab for that item.
3. Then go to the item level by bouble click OR selecting
'Display item details' Pushbutton at the left corner..
Note: Try to use enter when u fail to record at any time.
Regards,
Santhosh
‎2006 Nov 02 8:59 AM
hi
good
if you r doing the recording then you have to put the data manuallay, other wise if you running the BDC in A mode than check with your data that you have in the text file, there must me some mismatch with the data that is the reson the data is not populating in the particular screen.
thanks
mrutyun^
‎2006 Nov 02 9:06 AM
Ramu,
you know the ordername.
so get the line items in some IT.
sort the internal table.
while populating etdat, use RV45A-ETDAT(L_NUM).
get this l_num depend on the line item value from the IT.
-Anu
‎2006 Nov 02 9:11 AM
hi Ramu,
If you want to address the specific item ,we can click on (item to top) button in the same screen,
and its fuction code is 'POPO'.
AND THE SPECIFIC ITEM WILL COME TO THE TOP , WHERE WE CAN CHANGE THE DATE ACCORDING TO ITEM NUMBER
‎2006 Nov 02 10:50 AM
Hi,
this is not total bdc ,
i will explain my problem please stggest.
the po-order nad poitem date material come form the externalsystem into idoc orders03.
I am writting the code in the user exit exit_saplvedb_001,include ZXVDBU01.
based on the po no and item i have to find the so number and item and wmeng and i have to papulate the date to so schedule date(RV45A-ETDAT) of item with the po date.
it will executed by call transaction va02.
in this with out manuval process i have to take the cursor to the date field for perticular item.
how to process.
Please suggest.
Thanks in Advance.
Thanks&Regards.
Srikanth.Vanam.
‎2006 Nov 03 9:46 AM
WE HAVE 2 OPTIONS ,
U CAN USE BAPI TO CHANGE THE PURCHASE ORDER.
BAPI_SALESORDER_CHANGE.
IF IT IS A ITEM LEVEL PO NUMBER, GET THE SO NUMBER AND ITEM NUMBER FROM TABLE 'vbkd'.
AND TRY TO USE THE BAPI AND CHANGE,
OR ELSE U CAN MODIFY THE TABLE VBEP AND THE FIELD NAME EDATU ,
ACCORDINGLY WITH THE LINE ITEM NUMBER THEN
FOR EXAmple,,
PArameter : s01 like VBKD-BSTKD.
data itab like vbkd occurs 0 with header line.
data itab2 like VBEP occurs 0 with header line.
select SINGLE * from vbkd into itab where BSTKD = S01.
SELECT * FROM VBEP INTO CORRESPONDING FIELDS OF TABLE ITAB2 WHERE VBELN = ITAB-VBELN .
LOOP AT ITAB2 .
ITAB2-EDATU = '20060616'.
MODIFY VBEP FROM ITAB2.
IF SY-SUBRC = 0.
WRITE : 'SUCCESS'.
ENDIF.
ENDLOOP.
‎2006 Nov 02 9:10 AM
Do the recording for selecting the item as well .then no need of selecting the item .