How to handle multible lineitems for BAPI_PO_CREATE

Dear Guru's,
please help to how to handle multible lineitems using bapi_po_create when we using transcation ME21N

Hi ,
u just need to use POITEM table itself , u can add multiple lines into this internal table.
regards
Prabhu

Similar Messages

  • How to handle SQL code for Daylight Savings for MST Time zone

    Hi,
    1. My time zone is MST. My data showing differently as day light saving started from November. Please help me how to handle these issue.
    2. After Mar 09 2014 Daylight saving going to end.( For this how to handle in the SQL codes)
    Please answer for the above 2 doubts.
    Thanks in advance.
    Regards,
    LuckyAbdul

    Hi Abdul,
    Daylight saving is basically like switching to another timezone. If your normal time zone is Mountain Standard Time (MST), you will switch to Mountain Daylight Time in the summer.
    If daylight saving or timezones are a concern. It is best to store your dates in a DATETIMEOFFSET(0) column. This data type includes the offset between your selected timezone (MST or MDT) and UTC. The offset between MST and UTC is -7 hours and the offset
    between MDT and UTC is -6 hours.
    Be sure to datetimeoffset(0) and not just datetimeoffset. datetimeoffset(0) uses 8 bytes to store it's data (same as datetime), but datetimeoffset uses 10 bytes. This is especially important if you are going to index this column.
    Also be sure to use a similar data type in your application or the timezone information will be lost. If it is an .Net application you should use The DateTimeOffset type. Most other programming languages have equivalent types.
    Hope this helps. If you have anymore questions please let me know.
    For more information see:
    http://msdn.microsoft.com/en-us/library/bb630289.aspx
    http://msdn.microsoft.com/en-us/library/ms187819.aspx
    http://msdn.microsoft.com/en-us/library/system.datetimeoffset%28v=vs.110%29.aspx

  • How to handle "Validation failed for the field - Tax code" issue?

    We had mass uplaod the order that create on Mar with tax code effective date on Apr. Now we would like return on this order  and getting error of "Validation failed for the field - Tax code". How to handle this issue?

    Hi
    You will have to check if the Tax_Code of RMA being received is the same as the one in the related sales order.
    If not you will need to use the same tax_code.
    Refer below document : Doc ID 1584338.1

  • How to get test data for BAPI_PO_CREATE?

    Hi friends,
    can anybody please tell me how to generate the test data  for BAPI_PO_CREATE?

    Hi swetha,
    Hi,
    You could test this scenario with using the Test Message option from RWB.
    Or else
    You could design the scenario to get the response from BAPI.
    i.e BAPI to XI to File or any other application that will be easily avaialble.
    But you need receiver system for testing.
    Refer the below link it may help you .
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Regards
    Naveen.

  • How to handle LostFocus event for TextField in J2ME?

    Hi:
    I want to handle LostFocus event for TextField in J2ME.
    So can anybody help me.....
    Thank You

    MIDP API does not have LostFocus event.
    You can try setting ItemStateListener for the TextField ([if needed, click here for details|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/ItemStateListener.html]). API requires that +"...For implementations that have the concept of an input focus, the listener should be called no later than when the focus moves away from an item whose state has been changed. The listener should be called only if the item's value has actually been changed...."+

  • How to handle second request for addition to same AD group at code level?

    I am using custom java code for adding group memberships to users based on multiple multi-valued attributes.
    Example: Location Code is a comma separated multi-valued field in OIM User Form and I need to kick off my code each time the attribute is updated.
    If only 1 value in the LocationCode changes, I want to only add users to the group for this value not the older values that have not changed.
    How do I handle this scenario where the code adds the user to the same group twice in OIM. In AD the user is only added once. Do I need to write additional code to read all existing groups of the user, compare them with the new requests and then add new groups?

    Not a big deal.
    Create a trigger in Xellerate users process defn. There u'l get option for old and new value. take both values and compare both values using stringtokenizer and update the child form or group membership.

  • How to handle warning message for the fields in tab merging , PERSONAS 2.0

    Hi all,
    Please advice me on the below issue.
    In a transaction VA32 , I have merged the fields from one tab to another tab using tab caching.
    when i try to change the value of  a merged fields , it throws the warnings message. So it is continuously looping from one tab to another tab.
    So i tried to use the additional editor concepts in tab caching as below.
    Looping is stopped and throws warning message in the same tab.
    All the changes are saved successfully only when the enter button is clicked once in the main screen, else the changes are not saved and my previous value remains.
    Anybody have an idea on how we can use Additional actions in Tab caching concepts.
    Thank you,
    Arun

    Hi Kranthi,
    When i try to save the fields which i merged from different tab is not saving.
    Please find the below details.
    Green highlighted fields are custom fields which is merged from different screen like header or item overview screen. This is handled in script button.
    Red highlighted fields are merged from different tab like shipping or sales using tab caching concept.
    While changing the value of the fields which is merged from different tab , and press ENTER then it throws the Warning message if occurs.
    After warning message, if i try to save using the script button for copying all the custom fields which is merged from different screen , pasted it to their respective screens and also saved.
    Its working fine.
    When i try to save it before pressing ENTER button then the respective changes had made in the merged fields from different tab are not reflected.
    How we can handle this issue?
    Thank you,
    Arun

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure with cases for both buttons whithin one while loop? 
         *How do I pass the values of buttons A and B's hit counters out of the while loop in order to calculate the differences between them after each increment, not just the final count after the stop button is hit? 
         *How would I make one stop button work to handle both buttons A and B?   I tried to place the actual stop button in one button A's structure and its global in B's structure, but It wont seem to let me use a local variable for a latchable control
    Checker

    You should probably have not started a new thread and waited until your question in the original thread was answered. You can modify altenbach's example for a second button. You have a single event structure with a new event for the second button. You have a second shift register to track the number of times the second button is pressed. Inside the while loop but outside the event structure, you just have a subtract function in or to report the difference. do not modify the posted example for the stop button. It works perfectly as is.

  • How to handle line item for posting a document

    Hello,
    I am using a function module to post a document, so far I have hard coded all the values in the test program. I am passing two internal tables to the function module, one which has header data and the other which has line item data. So far I have written the following code to get the line item details:
    it_bseg-BUKRS = '001'.
    it_bseg-GJAHR = u20182010u2019.
    it_bseg-BUZEI = '001'.
    it_bseg-BSCHL = '31'.
    it_bseg-WRBTR = '900'.
    it_bseg-PSWSl = 'USD'.
    it_bseg-SAKNR = u20180000123456u2019.
    it_bseg-HKONT = u20180000123456u2019.
    it_bseg-LIFNR = u2018001234567u2019.
    append it_bseg to lt_temp_bseg.
    clear it_bseg.
    it_bseg-BUKRS = '001'.
    it_bseg-GJAHR = '2010'.
    it_bseg-BUZEI = '002'.
    it_bseg-BSCHL = '40'.
    it_bseg-WRBTR = '900''.
    it_bseg-PSWSL = 'USD'.
    it_bseg-KOSTL = '1111871234'.
    it_bseg-XKRES = 'X'.
    it_bseg-HKONT = '0000564738'.
    it_bseg-FISTL = '1234556000'.
    it_bseg-GEBER = '0000001'.
    it_bseg-fkber = '0'.
    append it_bseg to lt_temp_bseg.
    clear it_bseg.
    Now I want to get rid of the way I am handling the line item and want to handle it based on what user enters. For example right now only line item is being considered but if user enters two line items then what should be the approach.
    Thank you,
    Rajeev Gupta

    Any Suggestion.

  • How to handle vertical picture for creating wall paper

    I took many pictures (raw) during a recent festival.   Most of pictures were taken in standard horizontal format but some of them were taken in vertical orientation for a little tall objects.   After processing those pictures with LR5, they were exported in format as shown in the attachment.  They were mainly used for creating wallpaper or screen savers for my computers.   Most of pictures looked just fine  and shown nicely all in the screen but vertical pictures (pictures taken in vertical position) were all out of screen.  Those vertical picture must made different image sizing.  Could someone advise how to set those vertical pictures for export  to show all on computer screen?

    Because of the pictures taken during festivals, I am now spending more time to get nice wall papers for my win 7 and 8 computers.   I now found that it wais not that easy task.  Except for vertical pictures, I just noticed that a little bit of top and bottom parts were cut off in the both screen saver and wallpapers.   The problem is due to aspect ratio of pictures.  I use Nikon D7000 camera to take raw pictures.   In order to get perfect wallpapers and screensaver, I got to make a different aspect ratio after pp-ing in LR5.  That is too much head ache.  I like to keep 2:3 aspect ratio for printing in 4 x 6 papers.  Again aspect ratio must be changed to print on 8.5 x 11 papers..   It is too much hassle changing aspect ratios for so many pictures.. I decided to forget about some parts of top and bottom for wallpapers.  I decided not to take vertical pictures anymore.   I am learning hard way.

  • How to handle keypressed event for form

    i have to handle keypressed event of a textfield control.
    I have tried by implementing itemstatechangelistner ........
    but as api specifies its behavior varies from device to device....it is guaranteed that the control is notified when losing its focus. But my requirement is to get notified for every keypressed time.....
    any idea.....pls help me

    Can't be done for TextField. Many devices (example:SE k700i) launch a separate editing screen to change the text in a TextField.
    db

  • How to handle Release transfer for Configuration objects in PI 7.1?

    Hello Experts,
    In my current project we are working on Release1 production bug fixing (JDBC to IDoc interface) and parallely on release2 enhancement (field addition, mapping changes)  for the same object.
    I have used release transfer to copy IR objects (mapping, etc) from SWCV 1.0 to SWCV 2.0 and started making Rel2 mapping changes in SWCV 2.0 IR objects. But, am not able to create the ID objects (receiver determination, interface determination, etc) for Rel2 SWCV objects. Even though I select interface from SWCV 2.0, it says object already exists.
    Please suggest.
    Thanks,
    Raks.

    Hi,
        AFAIK ,SWC is not a part of the Key in identifying the receiver determination in the PI 7.1 also....
    which means that no need to create the ID objects again...as said for the changes (sender channel and inbound interface structure...) only change will be in the ESR interface structure.. which will be used by the ID...provided the same namespace is used for the changed message type also....
    Hope this clears you
    Rajesh

  • How to handle DPX files for transfer to another party across the country.

    Hi,
    I'm currently working with somebody that is on the other side of the country to do some positing work for my Premiere Pro progect.  There are 31 shots that need some compositing work.  I have already created the DPX files that I will be sending him, however, the total size of all project files is 33gigs.  Now, I decided to zip the files up and send that way.  Then it hit me, when I zipped up the thousands of individual DPX files I will be sending him, the compressed way down, like 8-1 (from 33gb to 7gb). The full project ended up being  I sent him one small batch of files, he opened them, and said they did not seem as though they lost any resolution, but I'm more concerned with color information being lost.  So, my question is this...When I zipped up the files, did I lose anything.  The unzipped back to the appropriate size (roughly 9mb per frame), and he said he could not see any loss in the image.  However, my concern is that when I go to bump up exposure on a couple of shots that were lost, Im going to be dealing with artifacting, and working with a lot less information than the original DPX files contained. 
    Did I lose information when I zipped up the DPX files?  
    Please help.  I may end up just fedexing him a hard drive full of media, but then I have to worry about shipping a flash drive with my media on it. 
    Thanks in advance for ANY and ALL assistance. 

    Did I lose information when I zipped up the DPX files?
    Nothing at all.
    ...my concern is that when I go to bump up exposure on a couple of shots that were lost, Im going to be dealing with artifacting, and working with a lot less information than the original DPX files contained.
    Zip only compresses the binary data that makes up the image...
    there is no compression of the image at all.
    After your co-worker completes the composites,
    he should zip them up to send them back to you.
    No worries.  I do this all the time.

  • How to handle runtime exceptions for sync scenario?

    Hi Experts,
       I have a synchronous scenario.
       Request :
       webservice -
    > sends input data -
    > PI -
    > SAP R/3 --BAPI
       Response:
       webservice -<---  PI <sends back any validation error or successfully processed message----- SAP R/3 --BAPI
       Here a webservice uses SOAP adapter to send input data to PI. While PI uses ABAP proxy to send data to SAP R/3.
       The problem is when the BAPI takes too long to process and resulting in timeout exception in PI. Is there some way we can catch this runtime exception in PI and send it to webservice as response?
       Please help!
    Thanks & Regards,
    Gopal

    Hi Gopal,
    as mentioned by otheres: the main issue is here to detect the reason for performance lack...
    >Is there some way we can catch this runtime exception in PI and send it to webservice as response?
    You can invoke a Business Process and open a sync / asyn Bridge. In the process call the FM synchronous and define an exception branch which you access in case of system failure. In the exception branch execute a transformation step to fill the response container with a corresponding error message.
    Regards,
    Udo

  • How to handle make current for programmatic VO

    I have a view object that populates row-sets based on a procedure. The procedure returns an oracle object list, which I am able to convert to the View Object's row.
    The executeQueryForCollection() runs my procedure stores my data using
        protected void executeQueryForCollection(Object qc, Object[] params,
                                                 int noUserParams) {
            Object[] bind_variable = null;
            String qry =
                "begin hr.PROC_test(:1); end;";
            try {
                    CallableStatement stmt =
                        getDBTransaction().createCallableStatement(qry,
                                                                   getDBTransaction().DEFAULT);
                    stmt.registerOutParameter(1, OracleTypes.ARRAY,
                                              "hr.TEST_REC_TABLE");
                    stmt.execute();
                    Array arr = stmt.getArray(1);
                    Object[] array = (Object[])arr.getArray();
                    ROW_COUNT = array.length;//my way to get estimated row count, since the row count for my result set is unpredictable. max of 3000 records
                    rs = arr.getResultSet();
                    storeNewResultSet(qc, rs);
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                super.executeQueryForCollection(qc, params, noUserParams);//I don't know whether this is really required
        private void storeNewResultSet(Object qc, ResultSet rs) {
            ResultSet existingRs = getResultSet(qc);
            // If this query collection is getting reused, close out any previous rowset - got from below link
            if (existingRs != null) {
                try {
                    existingRs.close();
                } catch (SQLException s) {
                    s.printStackTrace();
            setUserDataForCollection(qc, rs);
            hasNextForCollection(qc); // Prime the pump with the first row.
        }The View object is used in a page as a readonly table.
    Now the problem I am facing is :
    When I select a row, the make current property of table gets fired. This will call executeQueryForCollection with an additional param (bind variable) with name "fbkKy__0" (i believe it is find by key) and value : my current row's key value.
    Since my executeQueryForCollection is called, the procedure gets executed again(This is also not required because, the procudure does takes time, and is not required to re-execute always).
    The UI table will show the selection, but my iterator is pointing to the first row. And as a result am not able to get the current row in the bean.
    I developed the above VO based on below link and the fusion middle ware developer's guide.
    ref : http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
    ADF 11.1.1.3.

    executeQueryForCollection can be executed because of passivation/activation process. When you're selecting a new row in the table, the AM is going to be activated and VO instances are going to be refreshed. So, in case of passivation/activation, it's ok if your executeQueryForCollection is being executed again. But the strange fact is that you loose the VO's current row. The current row should be passivated as well and after the activation process the VO instance should have correct current row. That's why I asked about primary key. Actually, I emulated the situation and everything works fine, the current row is correct after the activation.

Maybe you are looking for

  • When I click on my contact icon it gets stuck in spinning wheel mode

    When I click on "contacts" icon in menu bar it opens but goes into spinning pinwheel mode and I can't access my contacts. If I don't force quite it goes on forever. How to reset or ??? without losing my contacts? Help please.

  • Text Justification

    My document uses "justified" alignment - i.e. |--------| - versus left, right or centered. When I use the Touch Up Text Tool and make changes the justification changes to left-justified. How can the original justification be preserved? Thanks.

  • MSI K7N2-L usb 2.0 doesn't work with scanjet 4570c

    I have a MSI K7N2-L motherboard with WINXP and SP1 that doesn't work with Scanjet 4570C if I set USB in BIOS to 1.1+2.2.  Sometimes it locked up the PC or it showed streaks on the image.  It worked just fine if I set to USB 1.1.  Does anyone knows th

  • Codec from after effects and transcoding in encore

    Hi I am new to encore that are my questions: 1. with witch compression should I send a mov to encore (it is dv pal material with a lot of psd images witch is prepaired in after effects) with dv pal (I guess not), with none ? or with photoJpg75 ? 2. i

  • Transport request outof SAP

    Hi there, Can anyone tell me is it possible to transport request objects out of sap system. for example, i have done the configurations in our server, and i want to transport all of the request to our clients' server. we are not able to use TMS to tr