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: 

plz give the ans

Former Member
0 Kudos

1)why we used tiff file in scripts?

2) if we have a quality client 300 in this client is it works scripts?

3) what is difference 4.6 c and 4.7 EE version?

4) give me some idea about ecc 6.0 version?

5) what is the purpose of code inspector?

6) in LSMW why we prefer session method?why we used direct method some times only?

7) how to debugs smart forms?

😎 difference between split and concatenate?

9) in which situation we can create secondary index?

10) what r the different type of session?

11)how to handle the error in call traction with step loop?

12)what is conversion routine why we used?

13) can we generated 2 session in BDC ? how?

4 REPLIES 4

Former Member
0 Kudos

8)difference between split and concatenate?

Split will split a string into different portion , splitting at a particular charactor.

lets a = 'a b c d'

split a at ' ' into b c d e.

then b ='a'

c = 'b'

d = 'c'

e = 'd'

But concatinate will combaine different pieces of string into one sstring

CONCATENATE b c d e INTO a.

then a = 'abcd'

11)how to handle the error in call traction with step loop?

data : bdcmsg like bdcmsgcoll occurs 0 with header line.

call transaction 'SE11' using it_bdc mode 'N' update 'A' messages into bdcmsg.

loop at bdcmsg.

call function 'FORMAT_MESSAGE'

exporting

id = sy-msgid

lang = '-D'

no = bdcmsg-msgnr

v1 = bdcmsg-msgv1

v2 = bdcmsg-msgv2

v3 = bdcmsg-msgv3

v4 = bdcmsg-msgv4

importing

msg = bdcmsg-msgv1

exceptions

not_found = 1

others = 2

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

if bdcmsg-msgnr = 428 .

success = success + 1.

endif.

write: / bdcmsg-msgv1.

endloop.

Here bdcmsgcoll is a message handaling structure .

13) can we generated 2 session in BDC ? how?

&----


*& Report ZBDCZMASTERSESSION

*&

&----


*&

*&

&----


report zbdczmastersession.

tables: plsc.

types: begin of s1,

empid type zmaster-empid,

name type zmaster-name,

age type zmaster-age,

end of s1.

data : it_tab type s1 occurs 0 with header line.

data : it_bdc type bdcdata occurs 0 with header line.

data : session like apqi-groupid value 'Sar'.

select * from zmaster into table it_tab.

call function 'BDC_OPEN_GROUP'

exporting

client = sy-mandt

group = session

user = sy-uname

exceptions

client_invalid = 1

destination_invalid = 2

group_invalid = 3

group_is_locked = 4

holddate_invalid = 5

internal_error = 6

queue_error = 7

running = 8

system_lock_error = 9

user_invalid = 10

others = 11

.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

refresh it_bdc.

loop at it_tab.

*IF SY-TABIX < 2.

refresh it_bdc.

perform bdc_dynpro using 'SAPMSRD0' '0102'.

perform bdc_field using 'BDC_CURSOR'

'RSRD1-TBMA_VAL'.

perform bdc_field using 'BDC_OKCODE'

'=SHOW'.

perform bdc_field using 'RSRD1-TBMA'

'X'.

perform bdc_field using 'RSRD1-TBMA_VAL'

'ZMASTER'.

perform bdc_dynpro using 'SAPLSD41' '2200'.

perform bdc_field using 'BDC_OKCODE'

'=TDED'.

perform bdc_field using 'BDC_CURSOR'

'DD03P-FIELDNAME(01)'.

perform bdc_dynpro using '/1BCDWB/DBZMASTER' '0101'.

perform bdc_field using 'BDC_CURSOR'

'ZMASTER-AGE'.

perform bdc_field using 'BDC_OKCODE'

'=SAVE'.

perform bdc_field using 'ZMASTER-EMPID'

it_tab-empid.

perform bdc_field using 'ZMASTER-NAME'

it_tab-name.

perform bdc_field using 'ZMASTER-AGE'

it_tab-age.

perform bdc_dynpro using '/1BCDWB/DBZMASTER' '0101'.

perform bdc_field using 'BDC_OKCODE'

'/EBACK'.

perform bdc_field using 'BDC_CURSOR'

'ZMASTER-EMPID'.

perform bdc_dynpro using 'SAPLSD41' '2200'.

perform bdc_field using 'BDC_OKCODE'

'=WB_BACK'.

perform bdc_field using 'BDC_CURSOR'

'DD03P-FIELDNAME(01)'.

perform bdc_dynpro using 'SAPMSRD0' '0102'.

perform bdc_field using 'BDC_CURSOR'

'RSRD1-TBMA_VAL'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_field using 'RSRD1-TBMA'

'X'.

perform bdc_field using 'RSRD1-TBMA_VAL'

'ZMASTER'.

*call transaction 'SE11' using it_bdc mode 'A' UPDATE 'A' MESSAGES INTO BDCMSG.

*CALL FUNCTION 'BDC_INSERT'

  • EXPORTING

  • TCODE = 'SE11'

*TABLES

*DYNPROTAB = IT_BDC

  • EXCEPTIONS

  • INTERNAL_ERROR = 1

  • NOT_OPEN = 2

  • QUEUE_ERROR = 3

  • TCODE_INVALID = 4

  • PRINTING_INVALID = 5

  • POSTING_INVALID = 6

  • OTHERS = 7

  • .

*IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

*ENDIF.

*

*WRITE:/ ' CREATED '.

*ENDIF.

endloop.

call function 'BDC_CLOSE_GROUP'

exceptions

not_open = 1

queue_error = 2

others = 3

.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

*call transaction 'SM35'.

*SUBMIT RSBDCSUB.

*SUBMIT RSBDCreo.

submit rsbdclog.

----


  • Start new screen *

----


form bdc_dynpro using program dynpro.

clear it_bdc.

it_bdc-program = program.

it_bdc-dynpro = dynpro.

it_bdc-dynbegin = 'X'.

append it_bdc.

endform.

----


  • Insert field *

----


form bdc_field using fnam fval.

if fval <> ''.

clear it_bdc.

it_bdc-fnam = fnam.

it_bdc-fval = fval.

append it_bdc.

endif.

endform.

-


'BDC_OPEN_GROUP' will create sessions

Former Member
0 Kudos

Hi Gopi Krishna,

5) what is the purpose of code inspector?

Ans: Refer to below Link

http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/content.htm

Former Member
0 Kudos

7) how to debugs smart forms?

after executing the smartform u will get a function module

goto that function module then follow this goto->main program

then there u will get a include with some F01ex INCLUDE /1BCDWB/LSF00000106F01.then display that include and but a breakpoint and debug as u usually do.

Regards

lalith

Former Member
0 Kudos

Hi,

5. Code Inspector- It is used to show the performance the

report. Which statement lead to performance standards etc.

8. Difference between split and concatenate

Split is used to devide the string into number of suib strings.

Concatenate is used to to combine a set of strings in

a single string.

7. How to debug a smart form- You can put a staement

Break-point.

In program lines.

(or)

Just swich on the debugging at the time of executing

the function module.

12. Conversion routines- To modify the output format at run

time. i.e. date and time formats etc..

13. we can generate 2 sessions in BDC.

Just call the function modules twice in the program.