JDBC to iDOC (DEBMAS) for create and change.

Hi all,
I have this problem...
my Scenario: JDBC(MultiBase) -> iDoc (Debmas06).
with iDoc DEBMAS06, i'm creating customers...
but the POS can send the same customer again...
XI process it but... show an error... because, the STCD1 is already created...
so i'm thinking use one interface with the iDoc and a BAPI(BAPI_CUSTOMER_CHANGEFROMDATA1) for this purpose...
but somebody told me (in SDN) than with debmas I can change a customer... but I can't find information about how to do it... everybody talk about.. the change in SAP and then send it to POS... but... in the other way????
any help, any info??
thanks a lot.
Regards

> if you change customer with IDOC do you use the same sales tax as
> the customer already has? and then you have this error ?
yes, I'm using the same Sales Tax... and when see in trx WE02 the iDoc, it say's: "
No batch input data for screen SAPLID_TAXNUM 1000"
SAP give this error only when I use two times the same STCD1.
so i assume, than can't use the iDoc for change an unique customer...
but may be I'm wrong and this error, tell me another thing.. i don't know.
> if not did you try leaving this field empty? as BAPI cannot change it anyway...
but thinking logically how the iDoc will find the customer than I want to change??????
may be I have to use my look up.. ask if  the customer "XXXX" exists, and if it is true, don't use the STCD1 and use the KUNNR ?????????
Thanks

Similar Messages

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • Can we use IDOC_INPUT_ Message type for creating and changing the document

    Hi,
    I have a requirement to create or change the requisition data.
    Can I use IDOC_INPUT_PREQCR01 function module for both the purpose.
    OR shall I go for custom function module by using BAPI function modules to create or change the data.
    Please help me in this regarding.
    Answers will be rewarded.
    Thank you.
    Eswar

    Hello Eswar
    You could use the IDoc processing function module if you had the data already available in the IDoc specific format (which is unlikely). This would mean you are receiving the IDoc data from another SAP system.
    Instead, check the BAPI explorer (transaction BAPI) if you can find an appropriate BAPI.
    Regards,
      Uwe

  • Table for Created and Changed Requests...

    Dear all,
    I need a program to fetch the created date and changed date for given
    1. Tcodes
    2. tables
    3. structures
    4. domains
    5. bapi
    6. badi
    7. smartforms
    8. scripts
    etc.
    Can you plz suggest me from which table i could get all these details.
    I tried TRDIR and i have got the dates for reports.
    Regards
    Sivaprasad...
    best suggestions will be rewarded with points.
    Edited by: Sivaprasad ML on Aug 4, 2008 2:20 PM

    Hi,
    Check this out
    RSRREPDIR                Directory of all reports
    TADIR                          Directory of Repository Objects
    TCDIR                          Control Directory
    TDDIR                          Active field exits for data elements
    TFDIR                          Function Module
    Thanks,
    Muthu

  • BAPIs for Create and Change Classes

    Hi experts,
    Is there any BAPI to Create or to Change the classes.
    Thanks,
    kruthik.

    Hi
    Class Creation first u need to check whether the class is alreay created or nor for that use the below BAPI
    CALL FUNCTION 'BAPI_CLASS_EXISTENCECHECK'
          EXPORTING
            CLASSTYPE = CLASSTYPENEW
            CLASSNUM  = CLASSNUMNEW
          TABLES
            RETURN    = RETURN.
        CLEAR RETURN.
        READ TABLE RETURN WITH KEY TYPE = 'S'.
        IF SY-SUBRC = 0.
          MESSAGE RETURN-MESSAGE TYPE 'I'.
        ELSE.
    CALL FUNCTION 'BAPI_CLASS_CREATE'
            EXPORTING
              CLASSNUMNEW          = CLASSNUMNEW
              CLASSTYPENEW         = CLASSTYPENEW
              CLASSBASICDATA       = CLASSBASICDATA
            TABLES
              RETURN               = RETURN
              CLASSDESCRIPTIONS    = CLASSDESCRIPTIONS1
              CLASSCHARACTERISTICS = CLASSCHARACTERISTICS.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT = 'X'.
    for Changing the class
    CALL FUNCTION 'BAPI_CLASS_CHANGE'
        EXPORTING
          CLASSNUM                = CLASSNUM
          CLASSTYPE               = CLASSTYPE
          KEYDATE                 = SY-DATUM
          CLASSBASICDATA          = CLASSBASICDATA
          CLASSBASICDATANEW       = CLASSBASICDATANEW
        TABLES
          RETURN                  = RETURN
          CLASSDESCRIPTIONS       = CLASSDESCRIPTIONS1
          CLASSDESCRIPTIONSNEW    = CLASSDESCRIPTIONSNEW
          CLASSCHARACTERISTICSNEW = CLASSCHARACTERISTICSNEW.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

  • DEBMAS IDOC for CREATE and UPDATE

    How do i use DEBMAS IDOC dynamically for create and update customer information.
    I have a file as source which would have combination of information for new and change customer information. and there is a field in the file with t code xd01(create) and xd02(update).
    Please advise.
    -Vasu

    Hi,
    The field MSGFN is the one which decide the operation.
    Please pass the values accordingly to indicate the Create/Update.
    In inbound IDOC case ,process code will check MSGFN and do the action.
    Regards,
    Akshay.

  • User Exit For PR Create and Change

    Hi,
       Please help me for finding User Exit while creating Purchase Requisiton(Me51/Me51n)  and aslo changing Purchase Requisiton(Me52/Me52n).
    Mainly i want to exit for validating Plant and material code while creating and changing PR.
    Thanks,
    Sunil sahoo

    Hi,
    Use the exists
    M06B0001  Role determination for purchase requisition release
    M06B0002  Changes to comm. structure for purchase requisition release
    Regards,
    Nandha

  • IDoc '0000000000000000' was created and forwarded for transmission

    Hi,
    we have configured the output types for generating the idocs for inquiry,quotation,salesorder applications. we are facing the following problems for all these applications.
    Object 0011000040
    Output type: Inquiry
    Processing log for program RSNASTED routine ALE_PROCESSING
    IDoc '0000000000000000' was created and forwarded for transmission
    similarly for quotation and salesorde the same error has been encountered
    we have also checked the snro transaction for number range assignment and didn't find the error.
    also checked in sm58 transaction and didn't find any errors.
    Please let us know how we can identify the exact cause of this error.
    Thanks in advance,
    Ram.

    Hi Friends,
    We found that there was a BADI in which explicit code was written to stop generating idocs....this was written for some other task.
    Iam closing this thread....Cheers...Ram.

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Created and changed columns strategy in HtmlDb?

    I have two date columns on all my tables created and changed. Created is not null. The columns are maintained by database triggers. I would like for these two columns to be displayed but not changed in a form.
    I have tried different ways to do this:
    1) Text Field (Disabled, does not save state)
    Create works fine but updating gives an error because the created column can not be null.
    2) Text Field (Disabled, saves state)
    Create works fine but updating gives ORA-01821: date format not recognized. I use a format mask like this: DD.MM.YYYY HH24:MI:SS
    3) Date Picker (use application format mask)
    Works fine but it ignores my format mask and the user can now change the dates.
    Has anybody done this with success? Also it would be nice with a solution that does not involve a lot of code sine I have to do this lots of places :-)

    I got pretty much the same as you can se below. It's not a problem with the triggers. But I got it working now with the :new = :old and it don't want to waste more time on this. But thanks a lot for your help!
    create or replace trigger tilbud_under_kategori_b_ins_r
    before insert on tilbud_under_kategori
    for each row
    begin
    if :new.id is null then
    :new.id := util.getSeqNextVal;
    end if;
    if :new.oprettet_af is null then
    :new.oprettet_af := util.getUserName;
    end if;
    if :new.oprettet_tidspunkt is null then
    :new.oprettet_tidspunkt := sysdate;
    end if;
    end;
    create or replace trigger tilbud_under_kategori_b_upd_r
    before update on tilbud_under_kategori
    for each row
    begin
    :new.oprettet_af := :old.oprettet_af;
    :new.oprettet_tidspunkt := :old.oprettet_tidspunkt;
    if :new.opdateret_af is null then
    :new.opdateret_af := util.getUserName;
    end if;
    if :new.opdateret_tidspunkt is null then
    :new.opdateret_tidspunkt := sysdate;
    end if;
    end;
    /

  • Bapi For creation and change for Vendor Master and Customer Master

    I am looking for BAPI to create and change  Vendor Master and Customer Master which will not take me to standard SAP transaction but will work in the background
    Explanation: BAPI to delete material (BAPI_MATERIAL_DELETE) take you to standard SAP screen of T-Code MM06  but BAPI to create material (BAPI_MATERIAL_SAVEDATA) creates material in the background i.e. does not take you to standard SAP screen of T-Code MM01
    So in my case (i.e. to create and change  Vendor Master and Customer Master ) I want BAPI which would work like BAPI to create material (BAPI_MATERIAL_SAVEDATA)

    For general information,to find BAPIs associated with any business object :
    Transaction : BAPI - choose alphabetical tab - Find customer - (right side choose - tools - create bapi list and search ) , you will get all the BAPIs associated with this particular business  object
    Mathews

  • Problem in Events (Create and Change)

    Hi all,
    I have developed a worlflow for transaction FV50. Now the problem is that when i create a parking document a mali is sent to approver for approval.
    Now suppose if approver doesn't do any action on the workitem which he had in his inbox and initiator changes the same document then the previous mail has to be removed and new mail has to be present in the approver inbox.
    I tried using fork with two branches.
    In one branch i kept entire flow and in one branch i have created a WAIT for event. It worked i.e. when i create a doc approver is receiving mail..but when i change the same doc then old mail is deleting from his inbox but he is not getting new mail for the changes he made for the document.
    So please help me how to achieve the same.
    Regards,
    Sagar.

    Hi Raj,
    Thaks for ur reply.
    And it helped me a lot.
    One more thing i need to know is regarding FORK. For the first i am using the same in WF.
    As i said In one branch i have whole logic and in other branch i have wait for event.
    Do i need to do have the same process which is done for create in change branch also.
    Please explain how FORK works.
    Thanks.
    Sagar

  • Create and change hierarchies via ABAP

    Hi,
    I'm searching for a function module or class which allows me to create and change hierarchies from a abap report.
    regards,
    Karen

    There a number of Standard Function Modules in SE37 :
    BUPA_HIERARCHY_BW_CATALOG      Transfer of Hierarchy Directory
    BUPA_HIERARCHY_BW_CONSTRUCT    Transfer of BP Group Hierarchy to BW Adapter (Full Upload)
    BUPA_HIERARCHY_BW_GET_DETAIL   Delivers Program Names of Exit Routines
    BUPA_HIERARCHY_BW_GET_INTRVALS Validity Intervals for Hierarchies That Can Be Loaded
    BUPA_HIERARCHY_BW_READ         Read Partner Hierarchy
    BUPA_HIERARCHY_BW_TRANSFER     Transfer of BP Group Hierarchy to BW
    Do a seach on HIER in se37

  • How can create and change PCA line items.

    How can create and change PCA line items.
    Please tell me the process and t.codes.

    If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
    If you are in new GL regular FI entry like FB50 will hold good for account types "S"

Maybe you are looking for

  • "The iPod cannot be synched. An unknown error has occured (-48)."

    My iTunes won't synch any new music files (photos synch fine) sighting that unknown error as the source. Now, I'm afraid to restore my iPod because a lot of the files have been moved and thus need to be relocated on iTunes, but if it won't alter my m

  • Mac mini streaming to TV's

    I currently have my mac mini setup only to my large projection screen tv/entertainment center in my living room. I use it pretty much as an alternative to cable (netflix, hulu, etc.). We recently purchased a 40 inch LCD for our bed room (which is dir

  • M2V render issue

    I am using Premiere CS5 and Encore CS5. I have a 1080i project that is going to a DVD. When I render the MPEG2-DVD files, I get a M2V and MPA file. The M2V has a pink vertical line on the far right edge of a transition into or out of a graphic. When

  • ERPi database not updating from 11.1.2.1 to 11.1.2.2

    I am in the process of updating from ERPI 11.1.2.1 to 11.1.2.2. I have moved the ERPI Oracle schema to a new DB and ERPI 11.1.2.2 is on a new server, in a new environment. When running the config tool to do the "configure database" task, I tried choo

  • Lsmw mm02 view selection issue

    we have written an lsmw for changing a material costing view . we want to select only one view .after compliciting the lsmw wwe run it in the forground mode but the view is not selecting , it is showing the error like "atleast select one view.please