Identify wether a PO was created by IDOC or by transaction

Hi all,
I am currently working in the BADI ME_PROCESS_PO_CUST method PROCESS_ITEM.
I am supposed to apply a treatment only if PO was created by transaction but not when created by IDOC.
Might someone know something about how to find this out?
Thanks for your help

Hi
You can set an your own variable called (for example) PO_BAPI
How you can set/get it?
1- Create a new function group having 2 function modul:
- The first one to set the global value PO_BAPI
- The second one to get the value of global value PO_BAPI
So:
2 - You can call the fm to set PO_BAPI in a user-exit called only by BAPI or you can call this fm in your IDOC just before calling the BAPI for PO
3- and so you can call the fm to get the value of PO_BAPI in the exit where you need to skip your custom controls
Max

Similar Messages

  • 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.

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • Is there a way to find if PK was created with alter or index+alter?

    Is there a way to identify whether a primary key (PK) was created by one or the other method:
    Method 1:
    alter table tab1 add constraint tab1_pk primary key ( pk );
    Method2:
    create unique index tab2_pk on tab2 ( pk );
    alter table tab2 add constraint tab2_pk primary key ( pk );
    When you drop or disable the PK, then in method 1 the corresponding index is also dropped, but in method 2 the index is not dropped. Before a bulk load, I'd like to know if I have to issue another statement to drop the index in method 2
    Thanks

    If you really want to drop the index just use the [DROP INDEX|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2103845] clause when issuing the ALTER TABLE command.
    Sample below:
    SQL> CREATE TABLE TEST (ID NUMBER);
    Table created.
    SQL> CREATE UNIQUE INDEX TEST_UNQ_IDX ON TEST(ID);
    Index created.
    SQL> ALTER TABLE TEST ADD CONSTRAINT TEST_PK PRIMARY KEY (ID);
    Table altered.
    SQL> ALTER TABLE TEST DROP CONSTRAINT TEST_PK DROP INDEX;
    Table altered.
    SQL> SELECT * FROM USER_INDEXES WHERE INDEX_NAME='TEST_UNQ_INDEX';
    no rows selectedHTH!

  • I can't open a file in OS 922 that was created in OS X.

    The web-pages I downloaded while in OS X (and stored in the HD) appear blank, (white, no logo) when I am booted in OS 922. When I try to open them, I receive a message "Sorry, could not open because the application that created it could not be found".
    So OS 922 cannot find an application (in this case do they mean Safari or OSX ?) that created the file. Sounds logical since OS X didn't exist when OS 922 was created. And Safari neither I think (if that plays any role)
    Question: does the Internet connection (Internet Explorer vs. Safari play any role ?)
    I have no problem whatsoever with files downloaded with Internet Explorer (5.1.6 or previous versions I had). Or from OS 9.0.4 to 9.2.2.
    Nor do I with photos (even with Safari and OS X) .
    Only web-pages and documents (including TextEdit) done with OS X. And not all files but half of them.
    G4   Mac OS X (10.4.7)  

    Hi, I need -
    OS 9's Finder uses File Type and Creator codes embedded in files to determine how the file should be handled - what program to use to open it, and how that program should process the file.
    OSX uses filename extensions rather than File Type and Creator codes.
    As a result, it is not uncommon for a file created in an OSX environment to be displayed as a generic unknown-type document when the machine is booted to OS 9; and for Finder to not know how to handle it when it is double-clicked.
    If you know that a certain program in OS 9 should be able to open a file, try dropping that file onto the icon for that program (or on an alias to that program) - some programs are capable of trying to open a file done that way; others won't even try.
    In most cases, a file created by an OSX app will not be openable by an OS 9 app - this is understandable, given that newer programs often use more advanced formats than older ones, even versions of the same program.
    If you know that you will be transporting a file from OSX to OS 9, try saving it in a form accessible by OS 9 - many programs will offer a list of alternate file formats when you do a Save As of the file, or (in some cases) an Export of it.
    Question: does the Internet connection (Internet Explorer vs. Safari play any role ?)
    It certainly can. If Safari saves a file in a proprietary format, then IE will probably not be able to open it. However, a file saved in plain html should be openable by most any browser.
    You might experiment with the settings in OS 9's File Exchange control panel, particularly the ones listed under PC Exchange. Adjusting some of these, or creating new linkages, may allow OS 9 to handle files which are openable by your OS 9 programs, but which are not identifiable by Finder.

  • Just downloaded 10.6 and cannot open itunes get error:ITunes Library.itl cannot be read because it was created by a newer version of iTunes

    Just downloaded Itunes 10.6 on windows7 64bit and now cannot open Itunes get error msg:ITunes Library.itl cannot be read because it was created by a newer version of iTunes.Tried uninstall and reinstall any help ? Thanks

    Even I am facing a similar problem. Initially the iTunes worked on my windows 64bit edition. Ever since I downloaded the latest version it has stopped identifying my 4S with an error msg that asks me to download the 64bit edition. I have tried it again and again but it did not help. After unistalling and downloading again the new error msg says " the file- iTuneslibrary.itl cannot be read because it was created by a newer version of iTunes". Please help!!!!!!!

  • IDOC-Segment Created a idoc document against Billing document

    Dear All,
    Thanks in  advance.
    Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
    so i want to add the segment which it was missed during generation of IDOC document against billing document.
    Example:
    a) IDOC document misses one segment let suppose "Seg1".
    b) In "Seg1" it have only one field let suppose "Field1".
    c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
    d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
    Please help on this issue.
    Regards,
    Sridhar.

    Hello,
              If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
             In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
            You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Create multiple IDocs

    Hi experts,
    I have a scenario where XI has to read the following flat file.
    FI010 delivery start ( 1..1)
         FI020 Section start (1..n)
              FI030 paymentrecord ( 1..n )
                   FI040 Name adresse record                     FI041 Meddelelsesrecord
         FI080 Sektion end
         FI020 Sektion start
         FI080 Sektion end
    FI090 delivery start
    For each FI020 section XI has to create an Idoc.
    In the message mapping i can create only one idoc.
    How can i split this source message into multiple messages ( dependant on FI020 section records ) so that message mapping is done for each message and mulitple IDocs are created???
      Can i split the source message using file adapter?
      can i use BPM transformation to do this??
    Looking forward to share your ideas.......
    thanks in advance
    Suneel
    Message was edited by: Suneel

    Hi,
    I was reading thru the thread..
    I request a help.
    I have a scenario where i have a outbound idoc (Zartmas04)
    Against a material it can have multiple plant information.
    It is required I update 6 tables of anotehr application if the incoming messages have all the mandatory fields..Else i have to consolidate all the error (Material Plant Comination) and send a Mail
    Let me know how can i achieve this
    Thanks
    John

  • Orders created by Idocs

    HI
    Suppose if a sales order is created by Inbound Idoc today i wanted to find out the IDOC no from which this order was created.
    Its getting very tough to search by each Inbound Idoc received today in We02 means i used to select the Idoc and go inside check under status 53 doc no.
    It will be easy if i get filter with doc nos or with some segment values?
    Pl advise.
    Cio
    Shan1242

    Hi Shan,
    Follow these steps to find out the IDOC number for a specific order;
    (Normally each order will have a specific / unique PO number, get the PO number from the order) and follow the steps:
    Use T-code WE09
    Input from an to IDOC creation date according to your order
    Direction = 2
    Status = 53
    Logical Message = ORDERS*
    Search in segment ... = E1EDK02 001
    Search in field ... = BELNR
    for value ... = (your PO number from the order)
    Execute.
    This is a specific search and will take you to the IDOC that was responsible in creation of the order number you have.
    Hope this will help you out !
    Regards,
    Syed Nasir

  • Create Individual Idocs Based on Parent and Child Segment type

    Hi Experts,
    I have a scenario IDOC to FILE ,  Split Single IDOC into Multiple IDOC's based on parent and child Segment Type
    For example If 3 child segments are same and 1 segment is different under parent segment then 3 same child segments are clubbed and create single idoc under parent segments and 1 different child should create in individual idoc under parent segment.
    Note : Same logic should work for N number of Parent Segments and Child Segments.
    Outbound:
    ZIdocName
    Control Record
    Data Record
    Parent Segment A
       Child Segment 1
       Child Segment 1
       Child Segment 1
       Child Segment 2
    Parent segment  B
       Child Segment 3
    Status Record
    I should get output like below
    Inbound:
    ZIdocName
    Control Record
    Data Record
    Parent segment A
      Child Segment 1
      Child Segment 1
      Child Segment 1
    Status Record
    ZIdocName
    Control Record
    Data Record
    Parent segment A
      Child Segment 2
    Status Record
    ZIdocName
    Control Record
    Data Record
    Parent Segment B
      Child Segment 3
    Status Record
    Please suggest me step by step process to achieve this task.
    Thanks.
    Ram

    Hello,
    Segment won't hold any value, so filter criteria should be there on some field wich exist in Parent node and chile node?
    Paste ur XML?
    Try this(Assuming u have some fields in parent/child segment on which u want to define filter criteria):
    Parent Field--UseOneAsMany----RC----
                                      ------------------Concat ----splitbyvalue(value change)--collapse context --- ZIdoc
    Child field-- RC----------
    Child field--RC--splitbyvalue(valuechange)--CC -Splitbyvalue(each value) -- ParentSegment
    Child field--RC--splitbyvalue(valuechange)--- ChildSegment
    RC -> Remove Context
    CC - Collapse Context
    Note - i haven't tested ur mapping, so make sure to adjust context in mapping
    Thanks
    Amit Srivastava
    Message was edited by: Amit Srivastava

  • Additional contact was created after logging into icloud

    Hi
    My apple ID was created in my contacts after I log on to my icloud account. Had to browse through all my contacts to find out as I was cleaning up my contacts.
    Did anyone else experience the same issue?

    Hi
    We have been working thru this error for some time and determined it is definitely an issue only with Windows platform clients for SGD.
    Multiple OS clients and multiple connection types have been tested, along with multiple SGD servers.
    The similarity is the same few pc/laptop clients that have the error have it no matter what.
    We have found respite for a particular laptop user by the resetting of the Microsoft Windows configuration (TCPIP stack) for the applications - refer to http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B299357
    Using the same laptop with a separate Linux partition has now proven the issue is purely a Windows client issue.
    Furthermore clearing cookies does not resolve, nor does updating Java.
    Checking the Windows firewall log for the laptop identified the firewall was blocking the TCC client communicating with the respective SGD server.
    Removal of the firewall failed to resolve this (disabling Windows firewall service does not disable the firewall ...).
    We are still investigating this further but can identify this is a problem with a small percentage of clients experiencing this error.
    Jeremy.

  • I am facing issue when opening flash files in Flash CC. (Error : - .fla was created with a later version of Adobe Flash Professional CC and might contain new features not supported in this version of Flash professional.)

    I am facing issue when opening flash files in Flash CC. (Error : - .fla was created with a later version of Adobe Flash Professional CC and might contain new features not supported in this version of Flash professional.)

    fyfesa1970 wrote:
    Ask a simple question and get a simple answer...see below...hilarious:
    All representatives are actively assisting other customers. Your estimated wait time is 0 minute(s) and 1 second(s) or longer. Thank you for your patience.
    We all can learn from this. Whenever you get stuck in a customer-service situation that goes nowhere, as soon as you become aware of the futility, get the name and employee ID of the person, then say, "I don't mean to be rude, I think we're both wasting our time. Perhaps you weren't trained for this issue, or perhaps your system isn't displaying the correct information. It doesn't matter, because I'm not getting proper customer support this way. Please ESCALATE this to your highest-level manager IMMEDIATELY. If that person isn't availabe, ESCALATE me to that person's highest-level manager. If you haven't been given the proper training, you can use this to inform your manager that you need the training. Thanks for trying to help. I appreciate it. I have copied and saved this chat session. NOW PLEASE ESCALATE THIS CASE AS I HAVE REQUESTED ABOVE. I'm waiting now... "
    The point is that you're a customer, and the company needs customers, so the individual who's failing to deliver good service needs to be identified so they can be properly trained, and so that problems in the system can also be identified, but more important is that you get the service you're entitled to.
    If you search the forum for similar questions, you'll see the kind of information that the volunteer users like yourself on the forum need to know about your system and files involved, so they can help you better.
    Good luck.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • In iCal - I keep getting the error message " This calendar was created by Mail" and it will not accept any input; why..??

    In iCal - I keep getting the error message “ This calendar was created by Mail” and it will not accept any input; why..??

    use Disk Utility and Verify Permisions then fix and Verify Disk and fix, this should fix it.

  • I have the following error The file "iTunes library.itl" cannot be read because it was created by a newer version of iTunes

    Can anyone help me with this problem.  I tried updating the latest itunes and it caused an error MSVCR80.dll missing.  I then tried fixing it after reading other people had the same problem and a solution was given about uninstaling itunes and the order in which to do that.  I did that but now get the error "the  files "itunes library.itl" cannot be read because it was created with a newer version of itunes.  I see a solution has been given about this but I cannot find what is suggested to enable me to follow instructions.  Can anyone please go through step by step (letting  me know where I can find what is needed) to enable me to be able tio log into itues again.  Thanks

    Hi pussygalore,
    If you are having issues with iTunes after an attempted update, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    You may want to make sure that in the last step (reinstalling iTunes) that you are installing the latest/newest available version, and not attempting a reinstall from an older file.
    Regards,
    - Brenden

  • I have had to unistall itunes and re install it.  Now I get a error message - The file 'itunes library itl' cannot be read because it was created by a newer version of itunes.  Help?

    I had a prompt to update the software, when this was updated i tunes would not open coming up with a 404 error message.  So I uninstalled it, reinstalled the 64 bit version for windows, now it wont open with the mentioned error message.

    zepel has it, but perhaps some more detail will help.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

Maybe you are looking for

  • White Screen won't go away after restart

    I have a 3G iphone and just yesterday it went to a completely white screen. Tried to restart multiple times and seems to go through the process as phone vibrates upon restart, but still only see white. I tried resetting factory defaults from itunes a

  • Reg : Cost -

    Hi Experts, I'm trying to tune this query but nothing seems to reduce the cost. Any pointers is highly appreciated. PERSON_DETAIL – +2,275,776 rows+ D_OPN – +1,57,094+ D_GPN – +49,197+ Query fetches –- +2,704,577 rows+ explain plan for SELECT        

  • Problem to import music to itunes

    i have a problem i download music from limewire and im not able to transfer it to my itune program to put it in my ipod shuffle, i wanna know if its possible and if it is how can i do it thanks

  • User-defined http header and com.oracle.httpclient.HttpRequestBuilder

    Hello, In Java ME Embedded 8, I would like to send a HTTP request containing a user-defined identifier in the http header (X- header type), using the com.oracle.httpclient package.        HttpClient client = clientBuilder.build();         HttpRequest

  • Unzip photos, Organize in  Album, Rezip.

    All I want to do is unzip a folder of photos import into camera roll album reorganize and zip it so people can see the new organized photos. Why can't I do this? The only thing I have found is. 1.Import zip file into iUnarchive. 2.Export to what they