Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdc

Former Member
0 Likes
939

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.

8 REPLIES 8
Read only

Former Member
0 Likes
853

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.

Read only

santhosh_patil
Contributor
0 Likes
853

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

Read only

Former Member
0 Likes
853

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^

Read only

Former Member
0 Likes
853

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

Read only

0 Likes
853

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

Read only

0 Likes
853

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.

Read only

0 Likes
853

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.

Read only

Former Member
0 Likes
853

Do the recording for selecting the item as well .then no need of selecting the item .