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

bapi

Former Member
0 Likes
437

hi experts,

iam looking for sample code on budget transfer(senders and reciever tabs,process type is transfer) using tcode FMBB using bapi BAPI_0050_CREATE.

URGENT.

answer will be rewarded

praveen

2 REPLIES 2
Read only

Former Member
0 Likes
392

hi,

I can understand u r problem..but u have to try for it..

I will explain u what to do..

the data u will get from txt or from .xls file..read thye data from the file and seggregate into the internal table according to the field length..and make sure that which fields are mandatory..for this initially what u have to do is get the data from the functional guy ..go to the se37..give bapi which u r using..execute the bapi..and give the inputs..and execute the function module..if it is exeuted succesfully...then u will idea which fields are mandatory..important is check whether the fields which u r using have any conversion routines..in the bapi structure..coing back to the code..after u populate tyhe internal table..

call the bapi...and pass the structure to the function module..and then call commit function..

Hope this may help u..still if u dbts u can raise a query in the sdn..

Njoy SAP

Read only

0 Likes
392

hi ravi,

can u please tell me which parameters must i pass to this bapi.i use the bapi like this.

CALL FUNCTION 'BAPI_0050_CREATE'

EXPORTING

HEADER_DATA = ls_header

HEADER_DATA_ADD = ls_header_add

TESTRUN = 'X'

TABLES

SENDER_ITEM_DATA = lt_item_set

SENDER_PERIOD_DATA = lt_sender_period

RETURN = lt_return.

but it is showing shortdump.it is telling 'it_item' parameter must use. the documentation is telling if recievers and senders tab,if process type is transfer we must use the parameter 'sender_item_data'.

regards

praveen