Uploading Different types of materials using BDC

Hello Guyz,
Could anyone please explain, How do you take care of uploading different types of Materials using BDC?
There will be lot of Materials in my Flatfile of different Types, say Raw Material(ROH), Semi Finished Materials(HALB) , Finished Goods (FERT) and so on.
How do you take care of the upload for different material types.
Regards,
Sudhir

Hi,
  First take all fielsds in one itab,three recordings.
Put the condition,
If MTART = 'ROH'.
   send those fields in to another itab.
append the itab.
elseif mtart = 'HALB'.
   send those fields into itab1.
append itab1.
elseif mtart = 'FERT'.
send those fields into itab2.
append itab2.
endif.
if  not itab[] is initial.
loop the itab
    here  ur performs
endloop.
endif.
if not itab1 is initial.
loop the itab1.
performs.
endloop.
endif.
if not itab2 is intial.
loop the itab2.
performs.
endloop.
endif.
if it is helpful  give me the points

Similar Messages

  • How to upload material text  in mm02 using bdc table control

    i have problem to upload material Description in mm02 using bdc.
    my text file is like
    2000251     AF     A12345               
    2000251     AR     B12345               
    2000251     BG     C12345               
    2000252     AF     F12345               
    2000252     AR     G12345               
    2000252     AF     H12345     
    i want to upload material number, language, and material description, how can i upload pls help me.

    Hi,
    Try with bapi , bapi_material_save_data.. didn't exactly remember it,Please check the same.
    Regards,
    Nagaraj

  • Different screens shown when using BDC for Transaction XK03

    Hello Forum,
    Please provide a soultion for the below problem .
    When i open transaction XK03 (with 4 check boxes of general Data ticked )it is ok.
    When i call transaction XK03 from my program (by sending the check box parameters ticked)- the scren shown is different .
    (I used BDC to set the checkboxes)
    Sample code for testing that i write to call XK03 is -
    DATA: ls_bdc_comp  TYPE bdcdata,                   "workarea for BDC recording of XK03
            lt_bdc_comp  TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
      CLEAR: ls_bdc_comp .
      REFRESH lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-program = 'SAPMF02K'.
      ls_bdc_comp-dynpro = '0101'.
      ls_bdc_comp-dynbegin = wc_x.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'BDC_OKCODE'.
      ls_bdc_comp-fval = '/00'.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'RF02K-LIFNR'.
      ls_bdc_comp-fval = 'S000819001'. "Vendor
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'RF02K-D0110'.  "Address
      ls_bdc_comp-fval = 'X'.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
      ls_bdc_comp-fval = 'X'.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
      ls_bdc_comp-fval = 'X'.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CLEAR ls_bdc_comp.
      ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
      ls_bdc_comp-fval = 'X'.
      APPEND ls_bdc_comp TO lt_bdc_comp.
      CALL TRANSACTION 'XK03'
           USING lt_bdc_comp.
           MODE 'E'.
    Regards
    Lovleen
    Moderator Message: Please use proper subject lines while posting your questions.
    Edited by: Suhas Saha on Jul 22, 2011 3:48 PM

    Hi,
    You can try with below code,
    DATA: ls_bdc_comp TYPE bdcdata, "workarea for BDC recording of XK03
    lt_bdc_comp TYPE STANDARD TABLE OF bdcdata. "table for BDC recording of MK03
    CLEAR: ls_bdc_comp .
    REFRESH lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-program = 'SAPMF02K'.
    ls_bdc_comp-dynpro = '0101'.
    ls_bdc_comp-dynbegin = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'BDC_OKCODE'.
    ls_bdc_comp-fval = '/00'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'RF02K-LIFNR'.
    ls_bdc_comp-fval = 'S000819001'. "Vendor
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'RF02K-D0110'. "Address
    ls_bdc_comp-fval = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'RF02K-D0120'. "Control
    ls_bdc_comp-fval = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'RF02K-D0130'. "Payment transactions
    ls_bdc_comp-fval = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CLEAR ls_bdc_comp.
    ls_bdc_comp-fnam = 'WRF02K-D0380'. "contact person
    ls_bdc_comp-fval = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    ls_bdc_comp-fnam = 'USE_ZAV'. "contact person
    ls_bdc_comp-fval = 'X'.
    APPEND ls_bdc_comp TO lt_bdc_comp.
    CALL TRANSACTION 'XK03'
    USING lt_bdc_comp
    MODE 'E'.
    It will also take you to some other screen but up to some extend you will able to see same kind of data.

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Error while Uploading vendor invoice (f-43) using BDC

    Hi All,
    I am trying to post vendor invoice using BDC (F-43). The function code for MORE-DATA is ZK, but when i run the program i get an error 'This Function is not possible '.
    What might be the reason for this ?
    Thanks & Regards,
    Radhika

    Hello,
    I believe the error is 8I017.
    Please check the following:
    1. Goto transaction SM30, view J_1IINDCUS -> Maintain
    IMG -> Logistics - General -> Tax on Goods Movements -> India ->
    Basic Settings -> Maintain Company Code Settings               
    2. Create an entry here for your company code.                    
    Test the same scenario for which you got the mentioned error.
    I hope this helps.
    Lucas Michel

  • Upload Purchase order text tab using BDC

    Is it possible to upload Purchase order text tab in material master (tcode mm01) using a BDC.
    If so pls tell me how to upload the same, what is the field name of the box.
    Regards,
    Senthil

    u need to use READ_TEXT or SAVE_TEXT or WRITE_TEXT or COMMIT_TEXT to upload text into SAP.

  • Activation Inspection Type of Material through BDC

    Dear Experts,
    Can anyone tell me how to activate the inspection type of material by using bdc or is there any sample program to do so.
    I have written the program for uploading inspection type for material using bdc. But when i upload the data by default Accounting1VIEW  gets selected instead of QM. What can be the reason. Help me to track the error and resolve.
    Regards.
    Edited by: Govinder Singh on Jan 27, 2010 12:28 PM
    Edited by: Govinder Singh on Jan 27, 2010 12:29 PM

    Hi,
       In standard inspection type field is ' Art ' . Check QALS table where you can find this field & if 03 inspection type is maintained it will store in qals table.
    Regards,
    Himanshu

  • Uploading info records by using BDC

    Hi all,
    Does any one having knowledge in uploading info records (ME11) by using BDC.
    Problem arises when going for multiple scales.
    Can any one let me know how proceed this BDC.
    Regards,
    Raj

    Goto transaction SHBD enter a recording name and specify the transaction code.
    Enter the test data and save it , it will actomatically create a bdc program.
    now select that recording name and click create program icon and specify the program name.
    This is the program which was created using transaction SHDB for XD01.
    include bdcrecx1.
    parameters: dataset(132) lower case.
    DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
    If it is nessesary to change the data section use the rules:
    1.) Each definition of a field exists of two lines
    2.) The first line shows exactly the comment
    '* data element: ' followed with the data element
    which describes the field.
    If you don't have a data element use the
    comment without a data element name
    3.) The second line shows the fieldname of the
    structure, the fieldname must consist of
    a fieldname and optional the character '_' and
    three numbers and the field length in brackets
    4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE ***
    data: begin of record,
    data element: KUN16
    KUNNR_001(016),
    data element: BUKRS
    BUKRS_002(004),
    data element: VKORG
    VKORG_003(004),
    data element: VTWEG
    VTWEG_004(002),
    data element: SPART
    SPART_005(002),
    data element: KTOKD
    KTOKD_006(004),
    data element: ANRED
    ANRED_007(015),
    data element: NAME1_GP
    NAME1_008(035),
    data element: SORTL
    SORTL_009(010),
    data element: NAME2_GP
    NAME2_010(035),
    data element: STRAS_GP
    STRAS_011(035),
    data element: PFACH
    PFACH_012(010),
    data element: ORT01_GP
    ORT01_013(035),
    data element: PSTLZ
    PSTLZ_014(010),
    data element: ORT02_GP
    ORT02_015(035),
    data element: PFORT_GP
    PFORT_016(035),
    data element: PSTL2
    PSTL2_017(010),
    data element: LAND1_GP
    LAND1_018(003),
    data element: REGIO
    REGIO_019(003),
    data element: SPRAS
    SPRAS_020(002),
    data element: TELX1
    TELX1_021(030),
    data element: TELF1
    TELF1_022(016),
    data element: TELFX
    TELFX_023(031),
    data element: TELF2
    TELF2_024(016),
    data element: TELTX
    TELTX_025(030),
    data element: TELBX
    TELBX_026(015),
    data element: URL
    KNURL_027(132),
    data element: STCD1
    STCD1_028(016),
    data element: STCD2
    STCD2_029(011),
    data element: BBBNR
    BBBNR_030(007),
    data element: BBSNR
    BBSNR_031(005),
    data element: BUBKZ
    BUBKZ_032(001),
    data element: BRSCH
    BRSCH_033(004),
    data element: LZONE
    LZONE_034(010),
    data element: KUKLA
    KUKLA_035(002),
    data element: BRSCH
    BRSCH_036(004),
    data element: UMSA1
    UMSA1_037(020),
    data element: UWAER
    UWAER_038(005),
    data element: UMJAH
    UMJAH_039(004),
    data element: JMZAH
    JMZAH_040(006),
    data element: JMJAH
    JMJAH_041(004),
    data element: BANKS
    BANKS_01_042(003),
    data element: BANKK
    BANKL_01_043(015),
    data element: BANKN
    BANKN_01_044(018),
    data element: ABLAD
    ABLAD_01_045(025),
    data element: KNKAL
    KNFAK_01_046(002),
    data element: CIVVE
    CIVVE_047(001),
    data element: ANRED_AP
    ANRED_01_048(030),
    data element: ANRED_AP
    ANRED_02_049(030),
    data element: NAMEV_VP
    NAMEV_01_050(035),
    data element: NAMEV_VP
    NAMEV_02_051(035),
    data element: NAME1_GP
    NAME1_01_052(035),
    data element: NAME1_GP
    NAME1_02_053(035),
    data element: TELF1
    TELF1_01_054(016),
    data element: TELF1
    TELF1_02_055(016),
    data element: ABTNR_PA
    ABTNR_01_056(004),
    data element: ABTNR_PA
    ABTNR_02_057(004),
    data element: AKONT
    AKONT_058(010),
    data element: DZTERM
    ZTERM_059(004),
    data element: MAHNA
    MAHNA_060(004),
    data element: BZIRK
    BZIRK_061(006),
    data element: AWAHR
    AWAHR_062(003),
    data element: WAERS_V02D
    WAERS_063(005),
    data element: KALKS
    KALKS_064(001),
    data element: LPRIO
    LPRIO_065(002),
    data element: KZAZU_D
    KZAZU_066(001),
    data element: ANTLF
    ANTLF_067(001),
    data element: PERFK
    PERFK_068(002),
    end of record.
    End generated data section ***
    start-of-selection.
    perform open_dataset using dataset.
    perform open_group.
    do.
    read dataset dataset into record.
    if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro using 'SAPMF02D' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RF02D-KTOKD'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RF02D-KUNNR'
    record-KUNNR_001.
    perform bdc_field using 'RF02D-BUKRS'
    record-BUKRS_002.
    perform bdc_field using 'RF02D-VKORG'
    record-VKORG_003.
    perform bdc_field using 'RF02D-VTWEG'
    record-VTWEG_004.
    perform bdc_field using 'RF02D-SPART'
    record-SPART_005.
    perform bdc_field using 'RF02D-KTOKD'
    record-KTOKD_006.
    perform bdc_dynpro using 'SAPMF02D' '0110'.
    perform bdc_field using 'BDC_CURSOR'
    'KNA1-KNURL'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNA1-ANRED'
    record-ANRED_007.
    perform bdc_field using 'KNA1-NAME1'
    record-NAME1_008.
    perform bdc_field using 'KNA1-SORTL'
    record-SORTL_009.
    perform bdc_field using 'KNA1-NAME2'
    record-NAME2_010.
    perform bdc_field using 'KNA1-STRAS'
    record-STRAS_011.
    perform bdc_field using 'KNA1-PFACH'
    record-PFACH_012.
    perform bdc_field using 'KNA1-ORT01'
    record-ORT01_013.
    perform bdc_field using 'KNA1-PSTLZ'
    record-PSTLZ_014.
    perform bdc_field using 'KNA1-ORT02'
    record-ORT02_015.
    perform bdc_field using 'KNA1-PFORT'
    record-PFORT_016.
    perform bdc_field using 'KNA1-PSTL2'
    record-PSTL2_017.
    perform bdc_field using 'KNA1-LAND1'
    record-LAND1_018.
    perform bdc_field using 'KNA1-REGIO'
    record-REGIO_019.
    perform bdc_field using 'KNA1-SPRAS'
    record-SPRAS_020.
    perform bdc_field using 'KNA1-TELX1'
    record-TELX1_021.
    perform bdc_field using 'KNA1-TELF1'
    record-TELF1_022.
    perform bdc_field using 'KNA1-TELFX'
    record-TELFX_023.
    perform bdc_field using 'KNA1-TELF2'
    record-TELF2_024.
    perform bdc_field using 'KNA1-TELTX'
    record-TELTX_025.
    perform bdc_field using 'KNA1-TELBX'
    record-TELBX_026.
    perform bdc_field using 'KNA1-KNURL'
    record-KNURL_027.
    perform bdc_dynpro using 'SAPMF02D' '0120'.
    perform bdc_field using 'BDC_CURSOR'
    'KNA1-LZONE'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNA1-STCD1'
    record-STCD1_028.
    perform bdc_field using 'KNA1-STCD2'
    record-STCD2_029.
    perform bdc_field using 'KNA1-BBBNR'
    record-BBBNR_030.
    perform bdc_field using 'KNA1-BBSNR'
    record-BBSNR_031.
    perform bdc_field using 'KNA1-BUBKZ'
    record-BUBKZ_032.
    perform bdc_field using 'KNA1-BRSCH'
    record-BRSCH_033.
    perform bdc_field using 'KNA1-LZONE'
    record-LZONE_034.
    perform bdc_dynpro using 'SAPMF02D' '0125'.
    perform bdc_field using 'BDC_CURSOR'
    'KNA1-JMJAH'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNA1-KUKLA'
    record-KUKLA_035.
    perform bdc_field using 'KNA1-BRSCH'
    record-BRSCH_036.
    perform bdc_field using 'KNA1-UMSA1'
    record-UMSA1_037.
    perform bdc_field using 'KNA1-UWAER'
    record-UWAER_038.
    perform bdc_field using 'KNA1-UMJAH'
    record-UMJAH_039.
    perform bdc_field using 'KNA1-JMZAH'
    record-JMZAH_040.
    perform bdc_field using 'KNA1-JMJAH'
    record-JMJAH_041.
    perform bdc_dynpro using 'SAPMF02D' '0130'.
    perform bdc_field using 'BDC_CURSOR'
    'KNBK-BANKN(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'KNBK-BANKS(01)'
    record-BANKS_01_042.
    perform bdc_field using 'KNBK-BANKL(01)'
    record-BANKL_01_043.
    perform bdc_field using 'KNBK-BANKN(01)'
    record-BANKN_01_044.
    perform bdc_dynpro using 'SAPMF02D' '0130'.
    perform bdc_field using 'BDC_CURSOR'
    'KNBK-BANKS(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_dynpro using 'SAPMF02D' '0340'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVA-KNFAK(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'KNVA-ABLAD(01)'
    record-ABLAD_01_045.
    perform bdc_field using 'KNVA-KNFAK(01)'
    record-KNFAK_01_046.
    perform bdc_dynpro using 'SAPMF02D' '0340'.
    perform bdc_field using 'BDC_CURSOR'
    'RF02D-KUNNR'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_dynpro using 'SAPMF02D' '0370'.
    perform bdc_field using 'BDC_CURSOR'
    'KNA1-CIVVE'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'KNA1-CIVVE'
    record-CIVVE_047.
    perform bdc_dynpro using 'SAPMF02D' '0360'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVK-ABTNR(02)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'KNVK-ANRED(01)'
    record-ANRED_01_048.
    perform bdc_field using 'KNVK-ANRED(02)'
    record-ANRED_02_049.
    perform bdc_field using 'KNVK-NAMEV(01)'
    record-NAMEV_01_050.
    perform bdc_field using 'KNVK-NAMEV(02)'
    record-NAMEV_02_051.
    perform bdc_field using 'KNVK-NAME1(01)'
    record-NAME1_01_052.
    perform bdc_field using 'KNVK-NAME1(02)'
    record-NAME1_02_053.
    perform bdc_field using 'KNVK-TELF1(01)'
    record-TELF1_01_054.
    perform bdc_field using 'KNVK-TELF1(02)'
    record-TELF1_02_055.
    perform bdc_field using 'KNVK-ABTNR(01)'
    record-ABTNR_01_056.
    perform bdc_field using 'KNVK-ABTNR(02)'
    record-ABTNR_02_057.
    perform bdc_dynpro using 'SAPMF02D' '0360'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVK-NAMEV(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_dynpro using 'SAPMF02D' '0210'.
    perform bdc_field using 'BDC_CURSOR'
    'KNB1-AKONT'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNB1-AKONT'
    record-AKONT_058.
    perform bdc_dynpro using 'SAPMF02D' '0215'.
    perform bdc_field using 'BDC_CURSOR'
    'KNB1-ZTERM'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNB1-ZTERM'
    record-ZTERM_059.
    perform bdc_dynpro using 'SAPMF02D' '0220'.
    perform bdc_field using 'BDC_CURSOR'
    'KNB5-MAHNA'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNB5-MAHNA'
    record-MAHNA_060.
    perform bdc_dynpro using 'SAPMF02D' '0230'.
    perform bdc_field using 'BDC_CURSOR'
    'KNB1-VRSNR'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_dynpro using 'SAPMF02D' '0310'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVV-WAERS'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNVV-BZIRK'
    record-BZIRK_061.
    perform bdc_field using 'KNVV-AWAHR'
    record-AWAHR_062.
    perform bdc_field using 'KNVV-WAERS'
    record-WAERS_063.
    perform bdc_field using 'KNVV-KALKS'
    record-KALKS_064.
    perform bdc_dynpro using 'SAPMF02D' '0315'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVV-LPRIO'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNVV-LPRIO'
    record-LPRIO_065.
    perform bdc_field using 'KNVV-KZAZU'
    record-KZAZU_066.
    perform bdc_field using 'KNVV-ANTLF'
    record-ANTLF_067.
    perform bdc_dynpro using 'SAPMF02D' '0320'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVV-PERFK'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KNVV-PERFK'
    record-PERFK_068.
    perform bdc_dynpro using 'SAPMF02D' '1350'.
    perform bdc_field using 'BDC_CURSOR'
    'RF02D-KUNNR'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_dynpro using 'SAPMF02D' '0324'.
    perform bdc_field using 'BDC_CURSOR'
    'KNVP-PARVW(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_transaction using 'XD01'.
    enddo.
    perform close_group.
    perform close_dataset using dataset.
    Reward if found helpful....
    Cheers,
    Chandra Sekhar.

  • How to upload chunks of Jpeg pictures in smartform using BDC.

    helo expert,
    Could you please tell me how can  i upload pictures in sap tables using bdc or something else.
    actually i would like to display pics as a field value dynamically in samrtforms while printing an invoice.
    IS there any facility to upload JPEG type pics because i need clarity in pics while printing ?
    Thanks........
    Santosh.............

    Use the standard process and BMP's uploaded into the graphics manager.  BMP's work fine for photos and you can mass upload them directly using the code from SE78 via LSMW or a program (no BDC required) and then call them dynamically in  your smartforms.

  • Advantage of using BDC

    Hi Experts,
       What is the advantage of using BDC upload??. Even if there is only a single record , that record should be uploaded through a BDC program.  I can upload the data through a report also. Then why BDC is preffered?

    The purpose of the Batch Data Communication is to transfer data. The BDC can transfer data from one SAP System to another SAP System or can transfer data from non-SAP System to SAP System too. To transfer data BDC uses normal transaction codes. Two methods are provided to BDC to do this work.
    SAP has provided two different types of methods for BDC to do its work. Among these, the first one is called the classical method or session method. Through this method the data can be read by the BDC program from a sequential dataset file. This sequential dataset file is stored in batch-input session. In order to .run the transaction in this session, what one needs is to execute the session. For this, follow these few steps: you can start and subsequently monitor the session firstly from – System à Services à Batch Input or have the session run in the background. In this method to generate the required session, you have to use the function module BDC _ NSERT and BDC _CLOSE.
    In the second method the BDC has to use the ABAP statement CALL TRANSACTION USING statement to run a transaction. In the second method, unlike in the first type, you do not need BDC to create a session.
    when comming to ur question... generally bdc are used to uplad large amount of data.  mostly not used for single record...
    once if u have a bdc prg then u can call it to uplad more than a single record....  any time.....

  • Error file generation using BDC

    Hi .. friends . This is Sudhir . I have  a scenario of loading 50 materials using BDC concept (generate session method) with tcode mm01. During loading if we have any faulty materials then they have to be written in a separate flat file (in the location which we specify in our pc). How can it be done?  Hope your answers will be helpful for me to proceed further. Expecting for your reply...
    With Regards
    Sudhir S

    Hi  Sudhir,
                I had also similar requirement through Call Transaction method, Solution is
               We can store all messages occuring during exection of transaction (e.g MM01) in an internal table of type BDCMSGCOLL, so it contains message id, message no and not message description for that u have to  pass internal table to a function module  MESSAGE_TEXT_BUILD now u can get message description now store this in an internal table.
              Pass this internal table to a function module GUI_DOWNLOAD this will create flat file on ur PC based on the location u have given to this function module.
              For session method, session log contains the information u can check   INCLUDE program BDCRECX1 which will be created during recording, run this program in the debugger mode u will get idea.
    Hope this will help u..............

  • Capture document no after saving a set of data using BDC

    Hi All,
    Can u give a useful solution  for caputuring data in a transaction.the scenario is:-
    1.an excel sheet data should be uploaded in a transaction O3URV_SS0 using BDC.----
    done with call transaction
    2.it will save all the line items associated with a particular header data.----
    done
    3.after save, it will generate a document no automatically for each header.----
    [this no is stored in the table OIUVL_SSTH]
    4.now I have 2 capture this doc no and print a message.
    for step 4  i have tried with GET PARAMETER ID.But  I am unable to get the doc no.
    can anyone give me the proper solutin and send me the piece of code.
    Thanks.

    Hi Kalpita,
    Hope you are handling the messages in your BDC process using the MESSAGES option in the CALL TRANSACTION. If so, after the CALL Transaction, check the Message table each line, most probably the required  Doc.No will be avaible in the message as a component for the success message.
    Eg. Document XXXXXXXXX created successfuly (  Here XXXXXXXXX  is the doc no. available in the message as a variable )
    Hope this will help you.
    Regards,
    Smart Varghese

  • Different type of sessions

    hi guru,
    please tell me different types of session used in session method.
    thanks
    subhasis.

    A : Display all sceens
    N : Display no screen (completely in background)
    E : Dissplay screen if error occurs.
    Regards,
    Vishal

  • Hi regarding material master and vendor master (mm01,xk01) upload using BDC

    hi can any one tell me how to upload material maste and vendor master using BDC.
    will the views capture by shdb when i use recording.

    Hey i suggest you to go to LSMW direct input program method. That's the best option.
    Material Master:
    Object               0020   Material master
    Method               0000
    Program Name         RMDATIND
    Program Type         D   Direct Input
    Vendor Master:
    Object               0040   Vendor master
    Method               0001   Standard
    Program Name         RFBIKR00
    Program Type         B   Batch Input

  • Flat  file to upload data using BDC for transaction MM01

    Hi
    I am trying to update data using bdc code has been attached below using a txt file.
    It is updating the first set of data into the table mara ,but  for the rest it is not
    All the data from txt file has being loaded to internal table , but the problem is it does not gets updated from internal table to the database .
    Only the first set of data has been loaded ,<u><b> rest of the data is not loaded</b></u>
    <u><b>content of txt file</b></u>
    zsc     zsc     kg     
    zsv     zsv     kg     
    zsb     zsb     kg
    <u><b>Actual code</b></u>
    report ZMAT_UPLOAD
           no standard page heading line-size 255.
    types declaration..........................................................................
    types : begin of t_mat,
       matnr(20),
       desc(50),
       uom(5),
    end of t_mat.
    internal table and workarea declaration.......................................
    data : i_mat type table of t_mat.
    data : wa_mat type t_mat.
    include bdcrecx1.
    start-of-selection.
    moving the flat file content to internal table................................
    CALL FUNCTION 'UPLOAD'
         EXPORTING
             FILETYPE   = 'DAT'
         TABLES
             data_tab   = i_mat.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    loop at i_mat into wa_mat.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                       'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=AUSW'.
    perform bdc_field       using 'RMMG1-MATNR'
                                        wa_mat-matnr.
    perform bdc_field       using 'RMMG1-MBRSH'
                                        'P'.
    perform bdc_field       using 'RMMG1-MTART'
                                        'ZOH'.
    perform bdc_dynpro   using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                        'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                        'X'.
    perform bdc_dynpro   using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                        '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                        wa_mat-desc.
    perform bdc_field       using 'BDC_CURSOR'
                                        'MARA-MEINS'.
    perform bdc_field       using 'MARA-MEINS'
                                        wa_mat-uom.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                        'NORM'.
    perform bdc_transaction using 'MM01'.
    endloop.
    Perform close_group.

    Hi Sumant,
    just concentrate on bold one
    report ZMAT_UPLOAD
    no standard page heading line-size 255.
    types declaration..........................................................................
    <b>
    data : begin of t_mat occurs 0,
    matnr(20),
    desc(50),
    uom(5),
    end of t_mat.</b>
    internal table and workarea declaration.......................................
    <b>*data : i_mat type table of t_mat.
    *data : wa_mat type t_mat.</b>
    include bdcrecx1.
    start-of-selection.
    moving the flat file content to internal table................................
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILETYPE = 'DAT'
    TABLES
    <b>data_tab = i_mat.---> t_mat.</b>
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    <b>loop at i_mat into wa_mat.------>loop at t_mat.</b>
    perform bdc_dynpro using 'SAPLMGMM' '0060'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-MATNR'.
    perform bdc_field using 'BDC_OKCODE'
    '=AUSW'.
    perform bdc_field using 'RMMG1-MATNR'
    <b>wa_mat-matnr.---->t_mat-matnr(change in this for ur wa to t_mat.</b>
    perform bdc_field using 'RMMG1-MBRSH'
    'P'.
    perform bdc_field using 'RMMG1-MTART'
    'ZOH'.
    perform bdc_dynpro using 'SAPLMGMM' '0070'.
    perform bdc_field using 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
    'X'.
    perform bdc_dynpro using 'SAPLMGMM' '4004'.
    perform bdc_field using 'BDC_OKCODE'
    '=BU'.
    perform bdc_field using 'MAKT-MAKTX'
    wa_mat-desc.
    perform bdc_field using 'BDC_CURSOR'
    'MARA-MEINS'.
    perform bdc_field using 'MARA-MEINS'
    wa_mat-uom.
    perform bdc_field using 'MARA-MTPOS_MARA'
    'NORM'.
    perform bdc_transaction using 'MM01'.
    endloop.
    Perform close_group.
    Reward points for helpful answers.
    Thanks
    Naveen khan
    Message was edited by:
            Pattan Naveen
    Message was edited by:
            Pattan Naveen

Maybe you are looking for

  • Manual Accrual in rabte agreement..

    Hi All, We are in process of moving to SAP from a legacy system. We want to put accruals from legacy system to Rebate agreement in SAP via manual accruals. So that we can know what was the legacy accruals. Also we want to check that if we create any

  • Fiscal Year Change T093C

    Hi, I cannot make an asset posting in 11/2008 because I get the error that no fiscal year change was done. In table T093C I see that CurrFY= 2004. In transaction OAAR, I see that the last closed fiscal year for all deprec. area's = 2007. The transfer

  • IPhone not keeping time

    I have the iPhone update 1.1.2 I synch on my XP Pro laptop through iTunes. I've noticed in the last few days that my iPhone isn't keeping time properly. Checking *Settings > General > Date & Time* I have *Set Automatically* set to On, and Calendar is

  • Inner Join within results?

    So if an item is a bottle, it will have a unique BottleKey and Null for CaseKey and if an item is a Case, it will have a unique CaseKey and Null for BottleKey. However, the PrimaryIDs are the same for both the bottle and case. I get the results to lo

  • I can't import more than 5 questions in GIFT format, even though I am not getting any errors during the process.

    I created a GIFT file with 25 questions, but when I import into Captivate 8.0.1.242 I can only see the first 5 questions.  I have triple-checked my import file for any syntax or other problems, but it seems perfectly fine. Any ideas?