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

How to update the Weekly data using BAPI for MD61

Former Member
0 Likes
1,397

Hi All,

i have used two BAPI's in my Z program to upload data from flat file to sap-system (BAPI_REQUIREMENTS_GETDETAIL and BAPI_REQUIREMENTS_CHANGE) and i uploaded the Monthly Data from the flat file on sap system successfully.

but i have to also upload the Weekly Data on the sap system using BAPI.

is there any BAPI for the same or what can be the solution for the uploading weekly data on sap system ?

Please reply me.

Thanks in advance..

Edited by: Prajapati_Shyam on Dec 29, 2010 4:19 PM

Hi All,

i have used two BAPI's in my Z program to upload data from flat file to sap-system (BAPI_REQUIREMENTS_GETDETAIL and BAPI_REQUIREMENTS_CHANGE) and i uploaded the Monthly Data from the flat file on sap system successfully.

but i have to also upload the Weekly Data on the sap system using BAPI.

is there any BAPI for the same or what can be the solution for the uploading weekly data on sap system ?

Please reply me.

Thanks in advance..

Edited by: Prajapati_Shyam on Dec 29, 2010 4:19 PM

7 REPLIES 7
Read only

Former Member
0 Likes
1,203

Hi Tech Experts,

can you help me for this particular things.

Read only

Former Member
0 Likes
1,203

Hi Prajapati,

I need some more details.

You said you are using these BAPI's to upload monthly data. Which is the tcode that you use in front end to upload monthly data?

Which tcode do u you to upload weekly data? Is it the same tcode ?

Regards,

Jovito.

Read only

0 Likes
1,203

Hi Jovito,

thanks for your reply,

i developed a Z program to upload monthly data as well as weekly data into tcode MD61 by selecting the radio button weekly or monthly but i am not able to upload the weekly data as i didnt' get any BAPI OR any other logic to upload weekly data Or not able to use the existing BAPI BAPI_Requirement_create , because the upload file is in monthly format.

MD61 tcode can be used for both data (Monthly or weekly data).

can you suggesst me any BAPI to upload the weekly data or any other logic for the same

thanks & regards

Prajapati

Read only

0 Likes
1,203

Hi,

You can use BAPI_REQUIREMENTS_CREATE.

Under REQUIREMENTS_SCHEDULE_IN-DATE_TYPE specify 2

REQUIREMENTS_SCHEDULE_IN-DATE_TYPE=2

.

Its an internal table so code accordingly.

Values for REQUIREMENTS_SCHEDULE_IN-DATE_TYPE

1 Day

2 Week

3 Month

4 Posting period

5 Planning calendar period

Regards,

Jovito.

Read only

0 Likes
1,203

Hi Jovito,

Can this BAPI (BAPI_REQUIREMENTS_CREATE) do automatic conversion into Monthly Data because flat file contains monthly Data ?

Regds

Prajapati

Read only

0 Likes
1,203

Hi,

I have not tried the BAPI so cant be completely sure.

But under normal circumstances, you will have to take care of the conversion from Monthly to Weekly and supply the values.

Regards

Jovito.

Read only

Former Member
0 Likes
1,203

yes..it's done but the file format should be weekly/daily format.