Application Development 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: 

BDC , Urgent Please.

Former Member
0 Kudos

I am working on BDC.

I am not that familiar about this.

I have one record(related to info record data) in internal table,

and I have to make changes in my program.I have two input files for the program basically ( one for create and one for change info record)

my task is:

I have to create info record

or change info record in the program .

to create info record the coding is already there in the program along with screen numbers. the program takes data from above input file and does the needful.

But to change info record, I don't have the coding and screens in my program.

for chaging info record, in the code some screens are missing.

shall I copy and paste simply the whole code(which was there for creating info record) related to the missing screens in the program like shown below ( copying from the code for creation of info record ) .

'' The below screen is not there for change info record.

'' But I need to update for changing info record.

PERFORM bdc_screen USING 'SAPMM06I' '103'.

...

...

PERFORM bdc_table USING 'RM06I-SELKZ(01)' 'X'.

PERFORM bdc_table USING 'RM06I-LTEX1(01)' int_me12-ztd.

...

...

Your earliest answer is valuable and more appreciable.

one more thing is:

Is there any functioin module which takes in MMDDYYYY and gives back as YYYYMMDD?

waiting for your reply,

Thanks in adv,

Sam.

6 REPLIES 6

Former Member
0 Kudos

A normal method which I used to follow I recorded the t-code for which I need to write a upload from SHDB. After that declare internal table and read the file in to internal table and SPILT it into another internal table which all the fields with the length and fill up the data and loop around the logic and pass the fields value in ....

For the Function module you can fine in SE37 if you look Date or DateConvert*

Thanks

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I would suggest doing a recording of the transaction for change via SHDB instead of manually trying to do it.

And, yes use the function module CONVERT_DATE_TO_INTERNAL to convert your date to internal format.

Regards,

Rich Heilman

govind_seenivasan
Participant
0 Kudos

Hi,

Record the transaction using SHDB and you will get all Screen Numbers and Program Name. Using that you can change your code.

Thanks

Former Member
0 Kudos

Hi Sam

It would be better if we can get the detailed info of the problem. well anyway I will try answering ur Question....

The bestthing while doing a BDC is as said by others, thats Doing a Recording of the transaction used through TCODE 'SHDB'. here you get all the scrren numbers and source program name.

and regarding the part of code you mentioned

*********************************************

'' The below screen is not there for change info record.

'' But I need to update for changing info record.

PERFORM bdc_screen USING 'SAPMM06I' '103'.

...

...

PERFORM bdc_table USING 'RM06I-SELKZ(01)' 'X'.

PERFORM bdc_table USING 'RM06I-LTEX1(01)' int_me12-ztd.

...

**********************************************

it all depends on the requirement of the change. we would have not given a field while creating a record but may have to change it if required so is this LTEX1 which you are changing also there while creating? I guess not as the code for the same is missing

0 Kudos

hi Sam

I guess you are dealing with Tcodes ME11 and ME12

and you have screen 103 in both the transactions.

you can navigate to screen 103 from General data screen(scr # 101) by function code 'TEXT'

so add a line before calling the 103 screen i.e.,

PERFORM bdc_screen USING 'SAPMM06I' '103'.

Line to be added: PERFORM bdc_table USING 'BDC-OKCODE' 'TEXT'.

hopefully I have answered ur Question

Regards

Santosh

0 Kudos

Hi Sam

Reply back if the problem isn't soled yet.

Santosh