Syntax problem with BDC perform

Dear Friends,
small problem in BDC Perform syntax but I am not getting how to do this..
I have writen the code like this in my BDC byt its throughing the error...Here I want to do the validation on each and every field. I mean If that field values are empty i don't want to change the SAP field value.
my code is like this.
    PERFORM dynpro USING:
    'X' 'SAPLMGMM' '0080'.
    IF NOT p_int_matl-werks IS INITIAL.
    ' ' 'RMMG1-WERKS' p_int_matl-werks.
    ENDIF.
    IF NOT p_int_matl-werks IS INITIAL.
    ' ' 'RMMG1-LGORT' p_int_matl-lgort.
      ENDIF.
    ' ' 'BDC_OKCODE' '/00'.
pls give me exact code how to do this...
Thanks
Sridhar

Hi sridher,
1. this kind of syntax ie. IF will give error.
2. If ur requirement is : blank value should not be put in bdc,
3. then one way is to change / write the logic
    inside the form itself.
4. ie. inside the routine/form DYNPRO.
5. So, it will be then general for all performs.
regards,
amit m.

Similar Messages

  • Problem with BDC on VA02

    Hi All,
    I am facing a problem with bdc on va02. After hitting enter on the first screen it pops an info message "consider subsequent douments". It doesn't get recorded in recorded. Hence I am not able to run the transaction with no screen mode. Please help me to suppress the info message
    Navin

    Hi Navin,
    These kind of messages and pop ups are precisely the reason why use of BDC for updating transactions is NOT advisable.
    If you were to bypass such messages, you would have to put a check to see why the message appears (in this case probably because the sales document flow for the sales order in table VBFA has some documents) and then write a logic to either handle the message or not.
    Instead i would recommend you use the BAPI functions provided by SAP to change the sales order.
    Have a look the BAPI for sales order change attached to the business object BUS2012. For this goto transaction SWO1 and enter the BUS2012 business object. Then goto methods and look for the "change" method. Double click on the method and look at the BAPI used to implement the method. Go ahead and use this method in your program as against a BDC.
    I am sure it will be a much better option.
    Otherwise if you still want to proceed with a BDC, please debug at the point where the message/pop up appears to ascertain reason for the same and then incorporate the same check in your program to handle the pop up.
    Regards,
    Aditya

  • Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit

    Updated Illustrator CC to CC 2014, having problems with CC performance. Slow and does not quit. What can be causing the issue?

    Hello, please checkout my post concerning lagging issues.
    I've also provided a link to a video I've recorded showing the Illustrator behavior on my iMac 27"
    Adobe Illustrator Cs6 Lagging Extremely Slow on Yosemite 27" iMac i7 late 2013

  • Is it possible to set the performance in Camera Raw, like in PS? I have problems with the performance of the adjustment brush. It is a very bad workflow.

    I have problems with the performance of the adjustment brush. It is a very bad workflow.

    Had you specified you're on Windows, I wouldn't even have replied. I don't do windows.
    Yes, it has been a waste of time for both you and me.
    You don't even know how to ask a question properly and you want me to read the FAQs?  Hah! 
    No one will take your word for "ACR latest version", and "PS CC latest VersionVersion [sic]", as many users believe they are fully updated when they are not. Exact version numbers are needed.
    8 GB is considered the realistic minimum to run Photoshop CC, but it's far from optimal—on any platform.  There are other factors that can be at play and which you don't specify, such as the space available on each of your hard drives, whether you have a physically separate, dedicated hard drive for Photoshop's scratch drive, what video card you have and how much VRAM does it have, what your graphics settings are in Photoshop's Preferences > Performance, etc.
    That's why I had indicated a link for you to read:
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    If you read that link in its entirety and provide the pertinent information, maybe some of the Windows experts will be able to help you out.
    Now I'm out of here.

  • Transaction AIAB (Auc Settlement) -  Problem with BDC

    Dear Friends,
              Problem: I am trying to distribute the amount of a asset (Auc) to other assets on line item basis by using BDC for transaction AIAB. I am facing problems when using amount based through BDC.
           Can you please suggest ASAP if any FM or BAPI's available to achive this for transaction AIAB?
    Thanks,
    Ram.

    Hi Ravi,
    Thanks for your valuable reply..
    Everything is fine if i run the transaction in ALLSCREEN mode, but iam facing the problem with the same after running it in NOSCREEN mode 'N'..
    Pls help..

  • Problems with Photoshop performance and data transfer speed on iMac

    Two months ago, I started noticing slow performances using Photoshop (above all using clone stamp tool) on my 27" iMac (late 2012). I did the AHT and I found that 8GB of 32GB RAM were broken.
    I removed them but the problem didn't disappered, I also noticed that data transfer speed (both copy and paste from/to internal HD and from CF card/external HD) was really slow.
    I tried many solutions suggested by Apple support, none of them worked out. At the end, I tried uninstalling and re-installing Photoshop: no more problems!!!
    10 days ago, I received a new 8GB RAM module and so I installed it back... suddenly, the problem came back, I tried re-installing again Photoshop but the problem, this time, still persist!
    Does anyone had the same experience? All other CC programs work well (LR, AE, Premiere...)

    yes, it does!
    what seems to be very strange to me is how data trasnfer speed could be affected!
    (just to say, I've already tried reset of SMC and PRAM, I've tried with different accounts and I've also re-installed the OS, next step would be formatting the disk and installing the OS from zero)

  • Problem With BDC

    Hi,
    I Recorded the Transaction for CN21
    I that I need to create a Network ,
    To create the Network it contains Many Activity and 1 Activity contains many Material Component.
    1 Network----> Many Activities
    1 Activity -
    >Many material Components.
    And the Activity and Material Components are TabCtrl.
    While Recording it will insert only 12 records.
    When We insert the record it overwrites.
    So ,
    How to write a BDC Program for this complex structure and for the Tabctrl.
    Points will be awarded for the solution.
    Regards,
    Jayasimha Jangam

    for table control BDC u have to use page down command for inserting more records...
    use following code :
    REPORT Y730_BDC5 .
    *HANDLING TABLE CONTROL IN BDC
    DATA : BEGIN OF IT_DUMMY OCCURS 0,
           DUMMY(100) TYPE C,
           END OF IT_DUMMY.
    DATA : BEGIN OF IT_XK01 OCCURS 0,
           LIFNR(10) TYPE C,
           BUKRS(4)  TYPE C,
           EKORG(4)  TYPE C,
           KTOKK(4)  TYPE C,
           NAME1(30) TYPE C,
           SORTL(10) TYPE C,
           LAND1(3)  TYPE C,
           SPRAS(2)  TYPE C,
           AKONT(6)  TYPE C,
           FDGRV(2)  TYPE C,
           WAERS(3)  TYPE C,
           END OF IT_XK01,
           BEGIN OF IT_BANK OCCURS 0,
           BANKS(3)  TYPE C,
           BANKL(10) TYPE C,
           BANKN(10) TYPE C,
           KOINH(30) TYPE C,
           LIFNR(10) TYPE C,
           END OF IT_BANK.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = 'C:\VENDOR.TXT'
       FILETYPE                      = 'ASC'
    TABLES
       DATA_TAB                      = IT_DUMMY.
    LOOP AT IT_DUMMY.
      IF IT_DUMMY-DUMMY+0(2) = '11'.
        IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
        IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
        IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
        IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
        IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
        IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
        IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
        IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
        IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
        IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
        IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
        APPEND IT_XK01.
      ELSE.
        IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
        IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
        IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
        IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
        IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
        APPEND IT_BANK.
      ENDIF.
    ENDLOOP.
    LOOP AT IT_XK01.
    REFRESH IT_BDCDATA.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-REF_LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  IT_XK01-LIFNR.
    perform bdc_field       using 'RF02K-BUKRS'
                                  IT_XK01-BUKRS.
    perform bdc_field       using 'RF02K-EKORG'
                                  IT_XK01-EKORG.
    perform bdc_field       using 'RF02K-KTOKK'
                                  IT_XK01-KTOKK.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-TELX1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  IT_XK01-NAME1.
    perform bdc_field       using 'LFA1-SORTL'
                                  IT_XK01-SORTL.
    perform bdc_field       using 'LFA1-LAND1'
                                  IT_XK01-LAND1.
    perform bdc_field       using 'LFA1-SPRAS'
                                  IT_XK01-SPRAS.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-KOINH(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    DATA : FNAM(20) TYPE C,
           IDX      TYPE C.
      MOVE 1 TO IDX.
    LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
      CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKS.
      CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKL.
      CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKN.
      CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-KOINH.
      IDX = IDX + 1.
    ENDLOOP.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFB1-AKONT'
                                  IT_XK01-AKONT.
    perform bdc_field       using 'LFB1-FDGRV'
                                  IT_XK01-FDGRV.
    perform bdc_dynpro      using 'SAPMF02K' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-ZTERM'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFM1-WAERS'
                                  IT_XK01-WAERS.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'WYT3-PARVW(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'XK01' USING IT_BDCDATA
                            MODE  'A'
                           UPDATE 'S'
                         MESSAGES INTO IT_BDCMSGCOLL.
    ENDLOOP.
    FORM BDC_DYNPRO USING PROG SCR.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-PROGRAM = PROG.
      IT_BDCDATA-DYNPRO  = SCR.
      IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND IT_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-FNAM = FNAM.
      IT_BDCDATA-FVAL  = FVAL.
      APPEND IT_BDCDATA.
    ENDFORM.
    reward points if useful...

  • Problem with query performance

    Hi All,
    While loading data if we run the report, will it make any difference in the query performance? I have a cube with 230 million records  I am running the delta which has got another 230 million records. Now I am trying to run the queries on the cube, all those timed out.
    But I have a DSO with the 480 million the same queries are running good on the DSO. But I wanted to run the reports on the cube not on DSO what can I do? Is the data load giving any problem in the query runtime??
    Pleas advise me what to do?
    Regards
    Kiran

    Hi,
    My load got finished, Now i created indexes and tried to run the query, every query on this cube times out.. but on the top of DSO we have Same queries those queries are running.. what could be the reason how can i go ahead to improve the query performance plzzz advise me
    Kiran
    Edited by: kiran kumar on Mar 14, 2009 1:28 AM

  • Problem with adding "Perform Business Operation" action

     

    Thanks Vamshi.
    Regards,
    Alexander.
    "Vamshi K Mugatha" <[email protected]> wrote in message
    news:[email protected]..
    Hi Alexander,
    This is a known problem and the workaround for this is to add the classesin the
    classpath of the studio.
    Vamshi
    Lebedev Alexander wrote:
    Hi,
    every time I add "Perform business operation" that invokes Java Class
    method
    (not static), the "Instance Variable" combobox is empty, although Idefine
    three Workflow Variables with Java Class type. When I try to save this
    action I receive the following error "You must select an InstanceVariable
    for this Business Operation".
    thanks,
    Alexander.
    Name: studio_screen.bmp
    studio_screen.bmp Type: Bitmap Image (image/bmp)
    Encoding: x-uuencode

  • Problems with the performance pack for Linux.

    Hi,
    I have just installed sp9 for WL 5.1 and with it the performance pack. But I
    get many of these exceptions:
    Wed Jun 06 15:46:09 EDT 2001:<E> <HTTP> Connection failure
    java.net.SocketException: Error in poll for fd: '30', revents: '23'
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:304)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    Everything seems to be fine on the site, but that exception does not look good.
    Anybody knows anything about this? Thanks,
    ranko

    Hi all,
    I'm looking for a way to determine the total number of sessions per day or
    the number of requests per day / hour or the current moment.
    The intention is to use this for reporting from the administration point of
    view.
    Thanks in advance
    Michael

  • Problem with the performance assistant

    For the past few days, I have not been able to see nothing on the performance assistant pop-up screen while my collegues are able to see it. What is wrong with my SAP screen? Is there any setting to be made for the SAP GUI? Please help me asap.

    I upgraded my GUI with version 710

  • Problems with BDC in F110v

    Hi Experts,
    I'm running a BDC involving the structure / screen F110V. I'm using the following line of code to check my program name:
            .....IF F110V-PROGN = 'RFF0AVIS' ....
    However, F110V-PROGN is always a blank string and the condition is never satisfied. Am I checking the correct value off the screen field or is there a correction? How do I check the PROGN field for a particular value?
    Any help would be greatly appreciated. Thanks.

    Hi Santosh,
    Thanks for the quick reply.
    I did, indeed, record a BDC with the said fields so that I could get the field name (PROGN).However I want to execute different logic based on the value of the F110V-PROGN.
    The condition always fails due to the fact that the screen field value is always a blank.
    Any comments? Thanks again.

  • Problems with BDC

    Hi Guys,
    I am having big problems when I try to re-assign an employee to a different position using the BDC method.
    If I do from PA40 directly, it works. It delimits the previous position to the date when the new position starts.
    But when I try to save the recordings and then do it from there it updates it on the PA side but does not do the same on the org side. To get around that, I go to PP02 transaction and create a relationship from there. Somehow by doing so I get two positions for the same employee in the same date range and the previous position is not delimited.
    Please help!!
    ~Mark

    Mark,
    I remember lodging this issue in OSS a couple of years back. But it was a futile effort and we didn't have enough time. So I ended up adding a few more lines of code to resolve the issue.
    Regards,
    Suresh Datti
    P.S. and yes like you said BDCs do act 'weird' sometimes..
    Message was edited by: Suresh Datti

  • Problem with BDC- file transfer

    I am able to open the file but the Contents of a file are not read.

    Hi,
    I think you are looking for BDC Problem, Its wrong forum to dicuss about it.
    Refer - this could help you
    How to upload  excel file
    data set problem bdc
    Thanks
    swarup

  • Problem with BDC in PORTAL(its running fine in R/3)

    i have done a BDC which works fine in R/3.....
    but fials in PORTAL...
    the reason being,
    the BDC picks a record in a subscreen which has a table in a grid..the table has 15 records...5 records are visible normaly in portal(and 10 in R/3) rest of the record are visible after scrolling...
    the BDC has to pick record at 14 position...it picks corectly in R/3...but when it comes to portal..the BDC stops and one has to manualy scroll and pick the record...
    alternativley i have made the reocrd appear at 1 position...and everything is fine..
    but whats the permanent solution?
    is it related to portal..(like for BDC scrolling in portal is failing)
    any alternative ways?
    (the BDC  is related to SEPARATION action in PA40)

    Hi Kumar,
    The permanent solution will be using BAPI's instead of BDC.
    The BDC is entirely dependent on the screen and any changes in the screen will make the BDC vulnerable.
    Thanks,
    Arun

Maybe you are looking for