How to populate the field after execution of the application

Hello gurus,
I am creating one application and need your help. on my webdynpro screen I have few fields, out of these user will enter some and one field I want to populate when user hit enters. My application is to create a sales order, user will enter the details and hit create button that will create the sales order. Now what I want is when the sales order is created on the same screen the sales order number should also be displayed in the field : VBELN. Can you please tell me how can I get this.
Thank
Rajeev

Hi Rajeev, if I understand you want show in a field that was created the VBELN after execute BAPI, well I assume that this field is binding with context document->Att_VBELN. You can use the code below.
    DATA lo_nd_document TYPE REF TO if_wd_context_node.
    DATA lo_el_document TYPE REF TO if_wd_context_element.
    DATA ls_document TYPE wd_this->element_document.
    DATA lv_att_vbeln TYPE wd_this->element_document-att_vbeln.
    lo_nd_document = wd_context->get_child_node( name = wd_this->wdctx_document ).
    lo_el_document = lo_nd_document->get_element( ).
    IF lo_el_document IS INITIAL.
    ENDIF.
   lv_att_vbeln = <<RETURNED VBELN FROM BAPI>>.
    lo_el_document->set_attribute(
      name =  `ATT_VBELN`
      value = lv_att_vbeln ).
Regards,
Edson Thomaz

Similar Messages

  • How To Save Modified Fields After query From The Database

    I Have This Customer Information Form That's Sort of an Ordering Forms , I Made It By LiveCycle v9.0
    And I Want To be able to search for Specific Record and Modify it and Save It Again to The DataBase
    I believe That We All Saw The (( Data Connected Forms Presentation )) For Pual Guerette
    At One Part Of The Presentation (Minute 0:26:00 specifically) When He Try To Search A Specific Record In the Database
    And He Got all this annoying Messages Then The Record what He looking Shows up ; He Said That We No Longer able to Modify The Record After We Doing the Search
    My First Question Is Why ???
    Is there anyway After I got that Specific Record I Want from the Database I Can make my modification on it and update it Back in the DB.
    OR i Have to Browse the whole DB looking for it Specially that I got this (ID Auto Increasment Number field Issue) Which leads me to ;
    My Second Qustion;
    Why I Can't just connect ''The Form Order Number'' to an Auto Increasment Number field in the DB
    Obviously i can't, So Can I do Anything to achieve this goal ??
    I Believe that we can Find some scripting to make that Happen 
    I Will Be So Grateful If There Is Any Helpful Answer
    FYI: I'm Not Java Expert So If There Is any Coding That's Can be Helpful Please POST ALL OF IT if you can ,,,,

    Hi,
    The information there is excellent and I would strongly recommend it.
    I don't have any public database examples and I am not inclined to spend time preparing an example if you are not prepared to read up on the methods.
    Stefan's site is the only link I have for databases.
    Good luck,
    Niall

  • Donu00B4t  see the fields after to change the append structure

    Hi experts,
    My problem is the following. I enhanced a Extraction Structure, I activated the append structure, and I assigned the Infosource to the datasource and it was ok. Then, I had to do some changes to the append structure, I again activated it, replicate the datasource, but I don´t see the changes. When I replicated the datasource for first time I saw the fields of the append structure, even I did the transfer rules. Then, when I did the changes I could not see more the new changes, but I can see the fields that they have not been changed.
    The changes were:
    - I changed the name of the one field because it was longer of 16 car. (before ZZ_CLASSIFICATION, after ZZ_CLASSIFCAT).
    - I added two fields more.
    I am not sure How works the RSA3 transaction. On it I entered the datasource name and I pressed the "Strat Extraction" and the system show to me a message "1558 register selected", then I pressed "Display List" but I can´t see the changes
    Do you have any idea about what happen?
    Thanks

    Hi Leonel,
    Usually, when I try to enhance my DS, I delete DS-IS assignment. Then do what you've done already. If you don't delete the assignment first, then often the old info remains.
    So, delete this assignment and repeat all steps again.
    Best regards,
    Eugene

  • How to make non editable field after requestor created the shoping cart

    Hi,
    i need to make non editable field (Price field) after requester created the shooping cart.The field should be  non editable only for requster .
    this i need to make when workflow triggers when the buyer sends  back the shopping cart to requester.
    one solution which i found:depend on the status of the shoping cart
    but i dont know whether it is correct way.
    if not please suggest me the solution.

    Hi,
    You can implement the BADI" BBP_UI_CONTROL_BADI".
    You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
    For sample code pls refer the foll links:
    Sample code for BBP_UI_CONTROL_BADI
    Re: Hiding Shopping Cart Fields in SRM 3.0
    Re: How to Hide the attributes from template BBPSC01?
    Re: How to validating total value in shopping cart
    Re: Price filed in Shopping cart should be in display mode
    BR,
    Disha.

  • How to populate this fields in ce_bank_accounts?

    Hey there, first, i want to apologize for my bad english.
    i'm working with Cash management and i'm using this API ce_bank_pub because the bank are internals. i have the load from banks and branch, and kinda the bank accounts, but i can´t find how to populate this fields, that are mandatory for my requeriment:
    AUTORECON_AP_MATCHING_ORDER
    AUTORECON_AR_MATCHING_ORDER  
    RECON_ENABLE_OI_FLAG
    RECON_OI_FLOAT_STATUS
    RECON_OI_CLEARED_STATUS
    RECON_OI_MATCHING_CODE
    AUTORECON_AP_MATCHING_ORDER2
    this is my "flow of work", first, i load the data with SQL*Loader in a custom/personal table, after this, i have a cursor that select all the records of this table and do some validations, after this (and if all the records are ok) i use the API ce_bank_pub.
    i don't know if that API support those fields, I've read the documentation but can not find what I require.
    any help will be appreciate.
    thanks a lot.
    [SPANISH]
    Estoy trabajando con una carga de bancos, sucursales, cuentas bancarias y usos de cuentas, hasta ahorita todo bien, solo tengo problemas al poblar los campos que se muestran en la parte de arriba en la tabla ce_bank_accounts, estoy utilizando el API ce_bank_pub ya que los bancos son internos.
    mi procedimiento, o la manera que lo hago es ésta:
    cargo los datos con SQL*Loader a una tabla intermedia/temporal por decirlo así, posteriormente un cursor selecciona los datos para realizar las validaciones y las reglas de negocio y si los datos son correctos utilizo el API, eso es en general para las 4 cosas, pero los campos de arriba no se como cargarlo, modificarlos o si hay alguna otra manera para agregarselos.
    cualquier ayuda es apreciada.
    Muchas gracias.

    Hi Miguel,
    hope this helps ...
    AUTORECON_AP_MATCHING_ORDER - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AR_MATCHING_ORDER - Order of matching statement lines to AR transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AP_MATCHING_ORDER2 - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX_OR_GROUP
    For all the above three fields, navigate to Lookups from Cash Management responsibility and find the lookup type BATCH_OR_TRX, this will have 3 values, B for Batch, G for Group and T for Transaction ..... pass any one of the three value as per your requirement ..
    RECON_OI_MATCHING_CODE - Open interface transactions matching code, T for matching by transaction number, D for matching by date and amount. Lookup type: OI_MATCHING_CRITERIA
    For the above field, navigate to Lookups from Cash Management responsibility and find the lookup type OI_MATCHING_CRITERIA, this will have 2 values D for Date and Amount, T for Transaction Number .... Pass any one of the two values as per your requirement ...
    RECON_ENABLE_OI_FLAG -  Flag to indicate whether to allow reconciliation of statement lines to open interface transactions, Y or N
    As per your requirement indicate Y or N ....
    RECON_OI_FLOAT_STATUS - Code to specify the float status for open interface transactions
    RECON_OI_CLEARED_STATUS  - Code to specify cleared status for open interface transactions
    I am not sure about the above two ...i.e. the values that needs to be passed ...
    Regards,
    Ivruksha

  • How to add Substitution fields after prerequisite (in step)

    Hi,
    Can anybody help me how to add substituion fields after prerequisites.Any configuration steps would be helpful except sap help.com.
    Thanks&regards,

    Hi,
    I am sorry , i hope, my question was not clear to u.  In OBBH i have created Substitution, Then created prerequistites, For that prerequisites i want to add substitutions(for fulfilled requirements).
    Substitution
       step
          prerequisite
              substitution fields
      HOw to create the aboue substituion fields, or any configuration could you please provide me.
    Thanks in advance,
    Veena

  • How to populate extended fields of VENDOR MASTER IDOC (CREMAS05)

    Hi,
    I have appended a new field to table LFA1 and the same has been placed on the screen. I have extended the basic IDOC type CREMAS05 to accommodate the newly added custom fields. Now when the vendor is created using IDOC how to populate these custom fileds. As the standard IDOC FM is using BDC to create the vendor. Please help.
    Thanks,
    Satish

    SAP uses function module ADDRESS_INTO_PRINTFORM
    this has usually 10 lines for the complete  address, so that it fits into the window in an envelope
    If you address has more than 10 lines, then SAP reduces this lines to 10, by skipping some of them.
    Read details in docu:
    http://help.sap.com/saphelp_nw04/helpdata/en/18/c042e1da4811d3b571006094192fe3/frameset.htm
    (open the menu on the left to navigate to the fomatting of the street.

  • HT4515 How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    Double tap the Home button, tap & hold the Safari icon until it starts to wiggle, tap the red minus sign to remove it from the Multi-Tasking bar. Tap the Home button when finished.

  • How to include the field BSEG-FDLEV in the invoice FV60 and F-43

    hi
    i am try to activate the cash management in my SAP, but i am not able to open the field BSEG-FDLEV (PLANNING LEVEL) in the additional data of the invoice voucher F-43 and FV60
    Is there anyone that knows how to do it? i have played with the field status group of the reconciliation account and the posting key, but nothing happened.
    I have understood that it should be some customizing company level.
    Any help is more than welcome.
    best regards
    Angelo

    Hi,
    Check the below link which is useful
    Re: change planning level in FI document
    Thanks
    Aravind

  • How to map journal fields and whats is the better  process type

    /Journal/JournalSuspenseCostCentre     NULL
    /Journal/JournalBalancingCentre     Lookup from Organisation ID
    /Journal/JournalMultiCompany     u2018Nu2019
    /Journal/JournalBatchNumber     NULL
    /Journal/JournalNumTransactions     Total number of /Journal/JournalLine transactions
    /Journal/JournalBaseDRTotal     Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Debit Values only
    /Journal/JournalBaseCRTotal     Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Credit Values only
    How to map journal fields and whats is the better  process type idoc/proxies?please let me know
    Journal Line
    Multiple journal lines per header:
    Schema Element     Data
    /Journal/JournalLine/JournalLineCostCentre     Bank account control Cost Centre
    /Journal/JournalLine/JournalLineAccount     Bank account control Account Code
    /Journal/JournalLine/JournalLineMoneyTotal     Transaction Line Amount
    /Journal/JournalLine/JournalLineVolume     NULL
    /Journal/JournalLine/JournalLineDescription     Payee Name
    /Journal/JournalLine/JournalLineChequeBookReference     NULL
    /Journal/JournalLine/JournalLineMatchField     Cheque Number
    NB Contra accounting entries should be posted to:
    Schema Element     Data
    /Journal/JournalLine/JournalLineCostCentre     Bank account control Cost Centre
    /Journal/JournalLine/JournalLineAccount     Bank account control Account Code
    /Journal/JournalLine/JournalLineMoneyTotal     Transaction Line Amount * -1
    /Journal/JournalLine/JournalLineDescription     Payee Name
    /Journal/JournalLine/JournalLineMatchField     Cheque Number
    /Journal/JournalPeriod     Current General Ledger Period
    /Journal/JournalYear     Current General Ledger Year

    It looks you are new to PI,
    you have to develop scenario end to end, by creating source data type and target data type(if you have XSD's not required),then use Graphical mapping (message mapping) to map source and target structures.
    Search in sdn for one end to end scenario you will understand easily
    Regards,
    Raj

  • How to declare the field if i want the output as 300.12,00

    How to declare the fields if i want the output as 300.12,00
    i have a quantity field so i need to place . in place of , and , inplace of .
    please help me

    hi,
    declare its as
    CURR
    field.
    Regards
    Anver

  • How to set the field non-editable in the classical report..

    Hi..
              How to set the field non-editable in the classical report..

    Hi experts,
    For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
    on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
    for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
    IF current->is_property_readonly(
    'NICKNAME' ) = abap_false. "#EC NOTEXT
    rv_disabled = 'FALSE'.
    ENDIF.
    when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
    can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
    The field properties are set as Input field and the display checkbox is not checked.

  • How to run media file after Runtime.exc the real player?

    Hi
    How to run media file after Runtime.exc the real player application

    String command = "cmd /c start videotest.rm";
    Runtime.getRuntime().exec(command);

  • HT1365 How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again

    How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again?

    Make sure iTunes on the computer is logged into the account on the phone.
    Plug the iPhone in.
    In the popup window warning about wiping your phone, hit cancel.
    In the left pane of iTunes, the phone icon should be there.
    Right click on it, select transfer purchases.
    Note: this will only transfer music bought from iTunes. Not mp3's from amazon or ripped from CD's.

  • When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object?

    When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object? The clip color turns purple and it only allows me to add motion but not change the clip duration and speed anymore.

    Thanks for the reply and as a work around method I used the Photoshop to do all the adjustments then export the video to iMovie to finish the final cut. I also have a problem to paint or clone on a blank video layer created in Photoshop. It tells me the time is beyond the target frame time, I don't understand the message. Can you explain to me what did I do wrong? Thanks a lot!
    John Wang
    801-3618742
    [email protected] 
    http://johnwanggallery.shutterfly.com  

Maybe you are looking for

  • Printing only odd/even numbered pages does not work

    I've got following problem: Printing only odd/even numbered pages does not work. Not in Preview, nor Adobe Reader. I Don't know why. i'm using a hp Color LaserJet 2550L. I just worked fine, but I cannot remember the time this failing first occured. I

  • Many to Many Relationship

    In powerpivot we are facing problem in resolving the many-to-many relationship between tables. Current table schema is: Having 4 tables- Bills - columns are- Bill No(primary key) Billing Fee Table-Fee ID(primary key), Bill Type, Sub Bill Type FeeList

  • Java DC to WebDynPro dc

    Hi I am using DC first time . I created Java DC and class Class1 which has method which returns string "Hello". I created public part. Now I created WD dc and Use dc of Java DC. I want to get "Hello" string in textView. I created context of view and

  • Canon LBP5050 doesn't work OSX Maverick

    I update my imac OSX Maverick. I can't get printing my Canon LBP5050. I install new driver but nothing happend. I try delete printer and install again but nothing works. Have anybody get working this model printer? Please can someone help me?

  • Message center crashes after update 7.1

    Hello, I did the update to ios 7.1 this afternoon. Since then my messagecenter doesn't work anymore. When I open it (scroll down from above) I see it as I was used to see it. And then it crashes. The screen becomes black and the Apple-logo appears. T