Adding BWITH in LSMW

Dear All
I am using a LSMW using a standard program RFBIBL00.
The LSMW was running fine but as I added BWITH under BSEG as line item it starts giving me error the field profit segment dont exsist on screen.
In BWITH I added tax code as a constant value.
The file user is uploading has no change in it as BWITH has hard coded constant of Tax code in LSMW.
Can any one explaing how can I use BWITH in LSMW or do I also need to change my upload file .
Edited by: Adnan Maqbool on Nov 5, 2008 10:32 PM

BWITH will be record type 2 document withholding tax data (extended withholding tax functions; FB01 and FBV1 only)
This Should Help you:
Re: How to use BWITH(WithHolding Tax) in RFBIBL00?
How to handle with holding tax part in standard program RFBIBL00
http://help.sap.com/saphelp_47x200/helpdata/en/e9/cb8a85eb0011d184650000e8a6bfbe/content.htm
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm

Similar Messages

  • Adding code in LSMW

    hi furus,
    i want to add codeing in step6 that is
    display field mapping in conversion rules in LSMW
    i need to add new lines to the existing source code can any one please tell me how to do this?
    thanks in advance

    Hi,
    in line 'Maintain Field Mapping and Conversion Rules' you make usually your field assignments. Here also button 'Rule' (CTRL+F4) is available. Choose in following radio-button list 'Abap Code' and a window will popup up.
    Add your tests, save and go on with normal LSMW processing.
    reward if it helps..
    Regards,
    Omkar.

  • LSMW - BUS1077 - Specifications for CG02

    Hi,
    to upload new and change existing EH&S specifications (CG02) I would like to use LSMW with the BAPI BUS1077, Method SAVREPMUL, message type SUBMAS.
    At the moment I only try to change header data or to create a new specification, I didn't add any valuations.
    For this fields SUBSTANCE with the SUBID-value, SUBCATEGRY, SUBAUTHGRP and - to see if something happens at all - the NOTE were used and filled.
    I checked with two specifications, one existing, one to be created.
    IDOC message is always 53 - everything fine, but nothing really happens, nothing is changed.
    When I add a sender entry of any kind, I get an error. But I want to upload data, not receive it from another system.
    When using function module BAPI_BUS1077_CREATE in a separate ABAP program, additionally BAPI_TRANSACTION_COMMIT and BAPI_BUS1077_SAVEFROMBUFFER have to be used. But probably this i not needed in LSMW and anyway it wouldn't be used during the IDOC processing even if added to the LSMW program.
    Which fields have to be filled addionally in order to really save some data? Do you have any experience here?
    Thanks a lot for your answers!
    pici

    Thanks Saba,
    but the fields I'm filling are exactly those which are the mandatory ones.
    The status messages are fine:
    - 53  Application document posted
       ==> Idoc processed
    (and the previous ones 50 - IDoc added, 64 IDoc ready, 62 IDoc passed to application)
    But nothing is added or changed.
    Maybe this is somethin EH&S specific?

  • LSMW FOR MATERIAL MASTER USING BAPI_MATERIAL_SAVEDATA -Adding Custom Fields

    Hi Gurus,
    I'm developing LSMW for Material Master Upload using BAPI method.
    Object:BUS1001006
    BAPI:BAPI_MATERIAL_SAVEDATA
    MESSAGE TYPE: MATMAS_BAPI
    BASIC TYPE : MATMAS_BAPI03.
    There is a requirement to use/map a custom field. Upon research custom field can be added to the parameter EXTENSIONIN and EXTENSIONINX, but I have no Idea on how to do it with LSMW. Please advise what approach is needed.
    Thanks and Regards,
    Jay

    Hi Gurus,
    I got the following code below.
    The custom field won't get updated.... Please advise on what should I do... I've checked different forums and still can't come up with the solution... Please advise..
    REPORT ztest_extend_matmas1.
    STRUCTURE
    TABLES:
    bapimathead, "Headerdata
    bapi_mara, "Clientdata
    bapi_marax, "Clientdatax
    bapi_marc, "Plantdata
    bapi_marcx, "Plantdatax
    bapi_makt, "Material description
    bapiparex, "Extensionstruktur
    bapiparexx,
    bapiret2. "Return messages
    DATA:
    bapi_te_mara LIKE bapi_te_mara,
    bapi_te_marax LIKE bapi_te_marax,
    v_file TYPE string.
    INTERNAL TABLE
    *to store the output data
    DATA:BEGIN OF it_material_number OCCURS 0.
            INCLUDE STRUCTURE bapimatinr.
    DATA:END OF it_material_number.
    *for materialtext
    DATA:BEGIN OF it_materialdesc OCCURS 0.
            INCLUDE STRUCTURE bapi_makt .
    DATA:END OF it_materialdesc.
    *für z-feld
    DATA:BEGIN OF it_bapiparex OCCURS 0.
            INCLUDE STRUCTURE bapiparex.
    DATA:END OF it_bapiparex.
    *für z-feldx
    DATA:BEGIN OF it_bapiparexx OCCURS 0.
            INCLUDE STRUCTURE bapiparexx.
    DATA:END OF it_bapiparexx.
    *to return messages
    DATA:BEGIN OF it_return2 OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA:END OF it_return2.
    DATA:BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret1.
    DATA:END OF it_return.
    DATA
    lt_messages      TYPE bapiret2_t.
    PROCESSING
    *bapimathead-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    bapimathead-ind_sector = 'P'.
    bapimathead-matl_type = 'AEM'.
    bapimathead-basic_view = 'X'.
    bapimathead-purchase_view = 'X'.
    bapimathead-inp_fld_check = 'I'.
    *bapimathead-BASIC_VIEW = 'X'.
    *bapimathead-SALES_VIEW = 'X'.
    *bapimathead-PURCHASE_VIEW = 'X'.
    *bapimathead-MRP_VIEW = 'X'.
    *bapimathead-FORECAST_VIEW = 'X'.
    *bapimathead-WORK_SCHED_VIEW = 'X'.
    *bapimathead-PRT_VIEW = 'X'.
    *bapimathead-STORAGE_VIEW = 'X'.
    *bapimathead-WAREHOUSE_VIEW = 'X'.
    bapi_mara-matl_group = '0001'.
    bapi_mara-old_mat_no = '100-251'.
    bapi_mara-base_uom = 'ST'.
    bapi_marax-matl_group = 'X'.
    bapi_marax-old_mat_no = 'X'.
    bapi_marax-base_uom = 'X'.
    bapi_marc-plant = '1000'.
    bapi_marcx-plant = '1000'.
    it_materialdesc-langu = 'EN'.
    it_materialdesc-matl_desc = 'DESC'.
    APPEND it_materialdesc.
    *bapi_te_mara-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    *bapi_te_mara-zzforst = '4148'.
    bapi_te_mara-material = '100-2520'.
    bapi_te_mara-zzmar_field1 = '4148'.
    *bapi_te_marax-material = it_material_number-material.
    bapimathead-material = '100-2520'.
    *bapi_te_marax-zzforst = 'X'.
    bapi_te_marax-material  = '100-2520'.
    bapi_te_marax-zzmar_field1 = 'X'.
    it_bapiparex-structure = 'BAPI_TE_MARA'.
    it_bapiparex-valuepart1 = bapi_te_mara.
    APPEND it_bapiparex.
    it_bapiparexx-structure = 'BAPI_TE_MARAX'.
    it_bapiparexx-valuepart1 = bapi_te_marax.
    APPEND it_bapiparexx.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata            = bapimathead
        clientdata          = bapi_mara
        clientdatax         = bapi_marax
        plantdata           = bapi_marc
        plantdatax          = bapi_marcx
      IMPORTING
        return              = it_return2
      TABLES
        materialdescription = it_materialdesc
        extensionin         = it_bapiparex
        extensioninx        = it_bapiparexx
        returnmessages      = lt_messages.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    THanks and Regards,
    Jay
    Edited by: jhayyy on May 17, 2011 6:54 AM

  • LSMW-adding Profitability segment in FI document by batch

    Dear all:
    i want to consult that:
    I do the LSMW using the standard batch to post the FI document:
    object :100
    Mehod : 0000
    program name ; RFBIBL00
    Program type: D
    and In my FI document one account is the revenue account and should to assign the PSG ( Profitability Segment)
    and so i  set the related field about the PSG such like RKE_PRCTR ( PSG-profit center)  and so on in the source structure and map them to the related BBSEG's PSG field just like RKE_PRCTR , and i found the read data and convert data, it is ok, but when i excute, it seems the data about the PSG can't upload to the related field, and i'm sure that the field's data is correct, so could you tell me except to map the PSG'S field , which field should i also set? thanks very much

    Hi,
    Can you execute the posting batch in the foreground and revert with the message it returns. In certain screens it should give you a message like:  Screen field XXX-XXXXX does not exist.
    Cheers.

  • Adding same field in Source structure 2 times in LSMW

    Hi everyone,
          i am trying to upload customer data using tcode F-22 using LSMW. But there is repetition of posting key(NEWBS),Account(NEWKO) and Amount(WRBTR). I am able to make the structure but while mapping ,,there is no field e.g.
    i've taken NEWBS1, NEWKO1 and WRBTR1. but it is not included while mapping of fields.
          please help,its urgent.
    don't worry for points.
    regards,
    Siddhartha Prakash

    Hi
    If you are doing recording by LSMW, then go to the recorded structure and goto edit mode. there you can write repetion of fields like NEWBS1, NEWKO1 and WRBTR1 and save it, then it will show you that fields in your mapping.
    Hope it would help you.
    If it helps reward it.
    Regards,
    Venkatram

  • Adding new field in lsmw recording

    Hi Sir,
    I have a recording for MM42 transaction. Earlier i forgot to add two fields. now I have to add them. one way is repeat recording. Is there any other method by which we can add fields in an existing recording. I am not able to do it by the option 'add screen field'. There its not showing the field name.
    Please suggest.
    Regards,
    Krishan

    Hi,
    Thanks.
    I also did in the same way, but it does not give the exact field name. for example, for tcode MM42, it gives like,
    SP4_TAB-SPTXT01 Text, 40 Characters Long
    SP4_TAB-SPTXT02 Text, 40 Characters Long
    SP4_TAB-SPTXT03 Text, 40 Characters Long
    SP4_TAB-SPTXT04 Text, 40 Characters Long
    SP4_TAB-SPTXT05 Text, 40 Characters Long
    SP4_TAB-SPTXT06 Text, 40 Characters Long
    SP4_TAB-SPTXT07 Text, 40 Characters Long
    Its not giving the exact field name.
    Please tell how we can find the exact field name to be added.
    Thnaks
    Krishan

  • Adding N-number of customer partner functions to a customer using LSMW.....

    Hi Abapers,
              I had a requirement to add some 500-600 customer partner functions(bill-to-party,payer,ship-to-party) to a single customer(sales rep or employee customer) using LSMW.
              I uploaded the customer(500) master using LSMW, and i want to add 499 customer partner functions(bill-to-party,payer,ship-to-party) to the 1st customer .
              So, i want to know how to do this using LSMW or BDC, and give me suggestions to overcome this....
    Thanks,
    Dilip.B

    I have responded to similar queries in one of the threads.
    Please find the URL of that discussion:
    [Re: LSMW   |Re: LSMW]
    Instead of Vendor you need to use CUSTOMER number and Chose the standard customer master program for LSMW. In recording you wont be able to acheve this.
    Hope this helps.

  • Re: LSMW. adding selection screen

    HI,
    I have to write an conversion program in LSMW
    in the field mapping and conversion rules i have updated the select fields.. but..
    how to change the text element and selection texts
    Thanks in advance
    Guhapriyan

    Hello,
    As the conversion program is a program created by SAP at run time we will not be able to put the selection texts, Since the name of conversion program will be in SAP std., namespace.
    An alternate solution would be to use:
    SELECTION-SCREEN COMMENT 1(20) 'COMMENT'.
    Hope this helps,
    Best Regards, Murugesh AS

  • Adding new field ,once the recording is done in LSMW

    Once the recording is done in LSMW...if we are asked
    to add an additional field later...then how do we add the
    field to the existing one...?
    I am not able to do using "+ Screen Fields" sysmbol....it gives all structure names...
      SP4_TAB-SPTXT01 Text, 40 Characters Long
      SP4_TAB-SPTXT02 Text, 40 Characters Long
      SP4_TAB-SPTXT03 Text, 40 Characters Long
      SP4_TAB-SPTXT04 Text, 40 Characters Long
      SP4_TAB-SPTXT05 Text, 40 Characters Long
      SP4_TAB-SPTXT06 Text, 40 Characters Long
      SP4_TAB-SPTXT07 Text, 40 Characters Long
      SP4_TAB-SPTXT08 Text, 40 Characters Long
      SP4_TAB-SPTXT09 Text, 40 Characters Long
      SP4_TAB-SPTXT10 Text, 40 Characters Long
    Here I am not able to recognize which field is used for what...
    Please suggest....
    Regards,
    Krishan

    You Can identify the fields name at screen,
    Go to the transaction screen and select the field and Press F1-> select technical description.
    And identify the field you want.
    like wise you can identify the field name.
    Regards
    Dhirendra

  • Message with IDOC number, created by LSMW, missing in job log in SM37

    Hi gurus,
    We have a temporary interface which uses LSMW to create IDOCs and update in SAP. It's used for materials, BOMs and document info records. In LSMW we have defined standard message types MATMAS_BAPI, BOMMAT and DOCUMENT_LOAD for the IDOCs. All these have the same problem.
    A background job runs and starts LSMW. In the job log in SM37 I want to see which IDOCs were created. For some reason this is different in my development system and my test system, and as far as I know all settings should be the same. In the test system LSMW creates more message lines in the job log, than it does in the dev system. Message number E0-097 is "IDOC XXXX added", and this is missing in the dev system.
    This is what it looks like in the dev system:
    Data transfer started for object 'MATMAS' (project 'X', subobject 'Y')             /SAPDMC/LSMW   501    I
    Import program executed successfully                                                             /SAPDMC/LSMW   509    I
    File 'XXX.lsmw.read' exists                                                                               /SAPDMC/LSMW   502    I
    Conversion program executed successfully                                                    /SAPDMC/LSMW   513    I
    Data transfer terminated for object 'MATMAS' (project 'X', subproject 'Y')       /SAPDMC/LSMW  516    I
    And this is what it looks like in the test system. More information, which is exactly what I want in dev system too:
    Data transfer started for object 'MATMAS' (project 'X', subobject 'Y')             /SAPDMC/LSMW   501    I
    Import program executed successfully                                                             /SAPDMC/LSMW  509    I
    File 'XXX.lsmw.read' exists                                                                               /SAPDMC/LSMW  502    I
    Conversion program executed successfully                                                    /SAPDMC/LSMW  513    I
    File 'XXX.lsmw.conv' exists                                                                              /SAPDMC/LSMW   502   I
    IDoc '0000000002489289' added                                                                      E0                         097   S
    File 'XXX.lsmw.conv' transferred for IDoc generation                                      /SAPDMC/LSMW   812   I
    Data transfer terminated for object 'MATMAS' (project 'X', subproject 'Y')      /SAPDMC/LSMW   516   I
    In both cases the IDOC is created and update works fine.
    My only issue is that I can't see the IDOC number in the dev system. I know I can get the IDOC number in WE02, but in this case we have program logic which reads the job log to be able to check IDOC status before sending OK message back to the other side of the interface.
    I hope any of you can have an idea how I can update somewhere to get message E0-097 with IDOC number into the log.
    Regards,
    Lisbeth

    Hi Arun,
    If you want to show your messages in the job log you have to use the MESSAGE statement. In case you use WRITE statements an output list be created which can be found in the spool (there is an icon to go to the spool directly).
    Regards,
    John.

  • LSMW BAPI Open Sales Order Load - How to update conditions?

    Hello gurus,
    I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
    Would greatly appreciate an answer ASAP.
    Thanks a lot in advance,
    Wayfarer

    Thanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
    Thanks,
    Wayfarer

  • Upload partner functions to customer master using LSMW

    Dear Friends,
    I'm trying to uplaod customer partner functions data through LSMW. I have tried to upload the data using recording method in LSMW(Tr. code: XD02).
    As per the business requirement, I need to upload multiple number(For example: 10 records) of SP(Sold to) partners to a single customer.
    While executing session, instead of adding all 10 records of partner functions, only the last record(i.e 10th records) is adding in the customer master.
    Your response will be highly appraciated.
    Regards
    Satish

    Hi Satish,
    You can't use XD02 to upload multiple partner functions by recording the transaction. It will not create multiple entries, always it will replace the existing ones with the new entry. you need to use the standard BI program or Idoc method do the same.
    I know the scenarios for the vendors it didnot work in that way for me at that time I used Standard BI method to create the multiple partner associations.

  • Issue in LSMW for material master using standard input program RMDATIND!!

    Hello guys,
    I have a issue in LSMW for material master.
    I have a custom field in MARA table. which I want to add in my LSMW.
    I added the field in BMMH1 structure. I'm passing the value to this field, But it is not populated in the table when I run it.
    Is there anything else I need to do apart from addition of field in the structure BMMH1.
    Thanks in advance for your help.
    Regards,
    Sumeet....

    see oss note 44410, it gives you a step by step overview.
    https://service.sap.com/sap/support/notes/44410

  • Business partner migration using lsmw direct load .

    Hi,
    We need to do business partner migration using the direct load method.
    We are thinking of using direct input method of lsmw for the data transfer.
    Could someone suggest a proper object/ subobject for the same.
    Alternatively has anyone done the same using LSMWbapi or LSMWidocs.
    Inputs will be highly appreciated <<text removed>>
    Dirk.
    Edited by: Matt on Dec 19, 2008 1:33 PM -  Do not offer rewards.  Please read the rules of engagement.

    Hi ,
    Does this solution give any way to update the customer fields too ?
    We have few customer fields added to BUT tables ... How can we update these fields using LSMW and IDOC ?
    Could you please give your opinion on thesame.

Maybe you are looking for

  • Dump - While downloading Excel file in Back Ground job.

    Hi Friends, I am running a report program in BackGround mode and Downloading an Excel file. Getting the following dump report. (Working in 4.6C) ABAP/4 processor: RAISE_EXCEPTION Job cancelled Help me to resolve this. 000380       CALL METHOD CL_GUI_

  • J2EE RI: error in creating Oracle XA Datasource

    I want to use the Oracle XA driver within Sun's J2EE Reference Implementation. So I put the JDBC driver JAR files to the $J2EE_HOME/lib/system directory and add it to the J2EE_CLASSPATH environment variable. Then I add the XA Datasource with the foll

  • How to determine which phone have a build-in accel...

    Hi, I know that the following phones have a build-in accelerometer: N95, N82, 5500 But what about future N-Series phones? Why is this HW feature nowhere documented? If you look at http://www.forum.nokia.com/devices/matrix_all_1.html I can see some HW

  • Mass change of po message error

    Dear Experts. I am trying to change the WBS in purchase orders.(BUS2012). However when i execute the system gives me that no data has changed. the system shows that no data has changed as below. Kindly assist. Thanks. Carol.

  • Can't save an IMovie...RE: "not enough disk space"

    We made a movie in iMovie (lots of photos no video) and are trying to save in iDVD but get an error message that states "Burning the disk can not proceed becuase the Startup Disk does not have enough empty space. To burn the disk, the Finder needs sp