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 TRansaction

Former Member
0 Kudos

hi folks,

I am having two issues related to the BDC transaction, I have recorded the below transaction using the BDC transaction recorder

'X' 'SAPMP50A' '1000',

' ' 'BDC_OKCODE' '=INS',

' ' 'RP50G-PERNR' REC-PERNR,

' ' 'BDC_CURSOR' 'T582S-ITEXT(01)',

' ' 'RP50G-SELEC(01)' 'X',

' ' 'RP50G-TIMR6' 'X',

'X' 'MP000000' '2000',

' ' 'BDC_CURSOR' 'P0000-MASSG',

' ' 'BDC_OKCODE' '/00',

' ' 'P0000-BEGDA' format_termin,

' ' 'P0000-MASSN' 'TM',

' ' 'P0000-MASSG' zmassg,

'X' 'MP000000' '2000',

' ' 'BDC_CURSOR' 'P0000-BEGDA',

' ' 'BDC_OKCODE' '/00',

' ' 'P0000-BEGDA' format_termin,

' ' 'P0000-MASSN' 'TM',

' ' 'P0000-MASSG' zmassg,

'X' 'MP000000' '2000',

' ' 'BDC_CURSOR' 'P0000-BEGDA',

' ' 'BDC_OKCODE' 'UPD',

' ' 'P0000-BEGDA' format_termin,

' ' 'P0000-MASSN' 'TM',

' ' 'P0000-MASSG' zmassg,

'X' 'MP000100' '2010',

' ' 'BDC_CURSOR' 'P0001-SACHZ',

' ' 'BDC_OKCODE' 'UPD',

' ' 'P0001-BEGDA' format_termin,

' ' 'P0001-ENDDA' '12/31/9999',

*' ' 'P0001-BTRTL' 'SNXP',

*' ' 'P0001-ABKRS' 'GA',

*' ' 'P0001-ANSVH' '04',

*' ' 'P0001-SACHP' 'H13',

*' ' 'P0001-PLANS' '99999999',

' ' 'P0001-SACHZ' 'P99',

*' ' 'P0001-SACHA' '026',

'X' 'MP003500' '2000',

' ' 'BDC_CURSOR' 'P0035-DAT35',

' ' 'BDC_OKCODE' '/00',

' ' 'P0035-BEGDA' format_termin,

' ' 'P0035-ENDDA' '12/31/9999',

' ' 'P0035-BLEHR' ZBLEHR,

' ' 'P0035-DAT35' format_termin,

'X' 'MP003500' '2000',

' ' 'BDC_CURSOR' 'P0035-BEGDA',

' ' 'BDC_OKCODE' '=UPD',

' ' 'P0035-BEGDA' format_termin,

' ' 'P0035-ENDDA' '12/31/9999',

' ' 'P0035-BLEHR' ZBLEHR,

' ' 'P0035-DAT35' format_termin,

'X' 'MP005000' '3000',

' ' 'BDC_CURSOR' 'P0050-BEGDA(01)',

' ' 'BDC_OKCODE' '=DLIM',

' ' 'RP50M-BEGDA' format_termin,

' ' 'RP50M-ENDDA' '12/31/9999',

' ' 'RP50M-ABGRD' format_termin,

' ' 'RP50M-PAGEA' ' 1',

' ' 'RP50M-SELE2(01)' 'X',

' ' 'BDC_OKCODE' '/11',

' ' 'BDC_OKCODE' '/11'.

The process flow:

Menu Path: Human Resources > Personnel Management -> HR Master Data -> Maintain -> Enter

Personnel Number -> Select Actions (0000) Infotype -> Create -> Enter the defined date -> Select Action – Termination -> Insert Termination Reason -> Click SAVE -> Insert P99 in Time Administrator field -> click SAVE _->Populate 12/31/9999 in End Date on IT 0035 -> Populate "ELIG" -> Populate Termination Date in DAT 35 -> click SAVE -> Delimit IT 0050.

I have two questions.

Firslty, when I SAVE the data entered for each infotype that action is not getting recorded in the transaction recorder which means that transaction is stopping right after the Actions (0000) infotype as a result the subsequent infotypes are not getting populated even though I recorded the entire process in the transaction recorder.

Secondly, delimit the Time recording info IT0050 I click the delimit button again this action is not recorded in the transaction recorder.

Bottom line: the action related to the buttons(SAVE or DELIMIT) is not getting recorded.

How can I solve this?

Any leads would be helpful

Thanks in advance.\

Vinu.

6 REPLIES 6

Former Member
0 Kudos

hi vinu

how do u know that those are not getting recorded but when u check the code there ok code is saying that those are also recorded

i mean if u check last two

'X' 'MP003500' '2000',

' ' 'BDC_CURSOR' 'P0035-BEGDA',

' ' 'BDC_OKCODE' '=UPD',

this is updates the records after all the values entered in to the fields this =upd tcode will executes n records will be updated

and like this same with the other option ok code

'X' 'MP005000' '3000',

' ' 'BDC_CURSOR' 'P0050-BEGDA(01)',

' ' 'BDC_OKCODE' '=DLIM',

here it is delimit the records

i think u better first try to upload some records u will find the result

i think this would be helpful don't forget to reward

Regards

naveen

0 Kudos

Thanks Naveen for responding

I have enough test data to check for this transaction, I did run the program in the display mode 'A' to diplay the screens, the problem is after entering the value for the fields on the screen and when I press ENTER these BDC_OKCODE dialog box for UPD or '/11' pops up otherwise it halts.

Coming to the Delimit records, I know that DLIM should do but it is not and I do not know why?

I am trying to track what action as I missing here?

Thanks

Vinu.

0 Kudos

vinu

i got the same proble when i tried to upload the data with lsmw

when i debug the transaction program i got there are some condition which r stoping the records to enter into the database like the transaction what ever i used is going to create an identification number of the each record i uploaded so this is generatin in the middle of the process so lsmw is unable to handle such values

so my suggestion is u gotrough the program or debug the program then u will find the point where ur tprogram is putting some conditon to the record to enter into the db

so at calls for upd and dlim put somebreak point or print some message by analysing step by step u will get some point where u willnot get this message is that means that is the obstruction.

ok i think this would be helpful for u vinu

if u have anyfurther doubts let me know

Regards

naveen

former_member181966
Active Contributor
0 Kudos

Hi Vinu,

I tried to Delimit 0050 , if you use the ICON on bar "DELIM" and then run the recording again its not doing any thing !!!

But if you change the record and put your demit date on 0050-endda . its working

Hope this’ll give you some clue !!

Thanks

0 Kudos

hi folks,

In the thread you have mentioned to add the (termination date)date record to '0050-enda' I did that and I commented the begda portion of it.

As I was examining how the data is getting populated on the screen (for DElimit 0050) by default the termination date is taken into the 'begda' field

That means the screen is getting populated as

03/31/2006 to 03/31/2006 and the second thing is it is throwing an error ' choose the valid function' which means the delimit action is not getting recorded.

How can I solve this problem?

'X' 'MP005000' '3000',

' ' 'BDC_CURSOR' 'P0050-BEGDA(01)',

' ' 'BDC_OKCODE' '=DLIM',

*' ' 'RP50M-BEGDA' format_termin,

' ' 'RP50M-ENDDA' format_termin,

' ' 'RP50M-ABGRD' format_termin,

' ' 'RP50M-PAGEA' ' 1',

' ' 'RP50M-SELE2(01)' 'X',

' ' 'BDC_OKCODE' '/11',

' ' 'BDC_OKCODE' '/11'.

ANY LEADS WILL BE HELPFUL.

THANKS.

VINU

0 Kudos

hi Saquib,

This posting was to you I did not understand your explanation of delimtiting process for IT0050 I got the point that the delimit date has to be updated to '0050-endda' as I was populating the 0050 screen the delimit date by default is taking into the begda even though I commented that part of the code in the transaction.

Can you elaborate a little more on that?

Thanks

Vinu.