Applet triggering via SMS

Hello,
I am developing an STK applet that is triggered on an event (EVENT_UNFORMATTED_SMS_PP_ENV) of a directly send SMS to the SIM (SIM Data Download). The message in the "UserData" of the SMS contains some commands to test proactive commands of the ME.
Now, I am thinking of receiving an SMS with "APDU-Commands" in the "processToolkit (byte event)" method, extracting and formatting the "UserData" with the "APDU" and calling the "process (APDU apdu)" method. Is this possible?
The reason of doing so is to be a little independent of the SIM API.
Thanks in advance...

Hello AnuViji,
As far as I know is there no possibility to send APDUs direcelty to the SIM.
"The difference between a Java Card applet and a Toolkit applet is that the latter does not handle APDUs directly. It will handle higher level messages." (3GPP TS 43.019)
To extraxt the TP-UD from an unformatted SMS you can use this sample code:
private void unformattedSmsDownloadService () {
// TP-UDL byte offset
short tp_UDLOffset;
// Get the references of the required SIM Toolkit session handlers
EnvelopeHandler envHdlr = EnvelopeHandler.getTheHandler();
ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
// Clear the temporary data buffer
Util.arrayFillNonAtomic(tempBuffer_A, (short)0, (short)tempBuffer_A.length, (byte)0x00);
// Get TP-UDL byte offset
tp_UDLOffset = envHdlr.getTPUDLOffset();
// Store TP-UDL byte value in tempBuffer_A[0]
tempBuffer_A[0] = envHdlr.getValueByte(tp_UDLOffset);
// Copy TP-UD (located at TP-UDL+1) in tempBuffer_A after length byte
envHdlr.copyValue((short)(tp_UDLOffset + 1), tempBuffer_A, (short)1, tempBuffer_A[0]);
// Display the data recieved
proHdlr.initDisplayText((byte)0, DCS_8_BIT_DATA, tempBuffer_A, (short)1, (short)tempBuffer_A[0]);
proHdlr.send();
return;
Regards,
Daniel

Similar Messages

  • TS2755 Hi All - I sent a text using my iphone 5 - It is PAYG and had no money in it. It tried to send as an SMS but gave the 'green button reject message'. After deleting the convo, the phone keeps trying to send the deleted text via SMS and wont stop not

    Hi All - I sent an sms using my iphone 5 - It is PAYG and had no money in it. (stupidly)
    It tried to send as an SMS but gave the 'green button reject message'.(no money)
    Step 2 in this stupidity - the phone keeps trying to send the deleted text via SMS and wont stop notifying me of this. Totally ruining the functionallity of my phone, and more so totally annoying. All I want to do is stop the constant re-trying of sending the deleted SMS.
    Any ideas?
    Many Thanks!

    Hi, many thanks for your help - Pressing and holding sleep/reset hasn't worked, the msg is still continually reporting it is failing to send. I can restore to a previous version however I'll lose my paid apps. Is there any way to work around this. I'm only concerned about one app - Epocam HD which I purchased last month. My last backup on PC is 4 March 13 - before I bought the paid app - Itunes advises me I'll have to re-pay to get my apps (app) back. Even though it advises that icloud backed up this morning at 1:30 am (which although it is before the text, I cannot manually select this restore).
    What a mess!

  • Lumia 925 Photo sharing via SMS message....

    Can anyone please tell me how I send and receive photos/pictures via sms message?
    I've looked through all the settings but can't see anywhere where I turn it on...
    Thanks... Jon T.

    And you're under the impression an android (or iOS) phone does not share everything, if not more then let me burst your bubble real quick.
    There's plenty of examples here how people break their screen and lose their images because they are not shared and the phone is reset when at the repair center.
    SMS does not have the ability to share photos, you can use MMS but the quality will be limited, it also requires a cellular network connect and will not work over WiFi (by design and on any phone, just i case you wonder).
    Setting up MMS is as easy as going to Settings > access point to check if the access point for your carrier is found and active, once it is you can send pictures from the messaging hub but, again, at reduced resolution/quality.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • How do I cancel the distance between the numbers? I'm having trouble copy phone numbers from the phone book and send it via SMS This problem I've found in the Arabic language, numbers appear in reverse Please help System 6.0.1

    How do I cancel the distance between the numbers?
    I'm having trouble copy phone numbers from the phone book and send it via SMS
    This problem I've found in the Arabic language, numbers appear in reverse
    Please help
    System 6.0.1

    MPEG-4 should not be used in FCP unless it is converted first or optimized in the application.
    Trash your preferences. Trash your project render files. Switch off background rendering. Do not re-render. Export your projects.
    Ignore the last frame and first frame indicators.

  • Transferring pictures sent via sms to PC

    My Daughter has over the past two years sent pictures of my Granddaughter via sms to me and now they are getting to be too many when I scroll down the list.  I have an ip5 and would either like to transfer them into my itunes library or onto a seperate file on my PC.  I haven´t activated or allowed photos taken with my ip5 camera to sync onto/into my itunes library or icloud when connected to the PC while I transfer these photos manually onto the PC.  Any suggestions?

    Follow on comments:
    I contacted LG Product Support with the same question.  Their partial response follows:
    If you are trying to transfer files from the phone to the computer, you will need a micro SD card. Your phone supports a memory card with up to 32GB
    Since the memory of your phone is too small the computer will not recognize it, so that’s why you must get a memory card and move the pictures to the memory card
    In order to move the pictures to the SD card, you must go into your picture gallery and tap more, then select “move to SD card/ move to phone”, select all files, hit move.
    After this, go to Menu - Settings & Tools - tools - USB Mass storage, and then connect the phone to the computer. Your phone will be recognized as a removable disk and you will be able to drag and drop the files.
    Sincerely,
    Lorraine D.
    LG Customer Service

  • Sending contacts via SMS

    Hi!
    I would like to get your expert advice on the issue we are experiencing with our Z10 and Q10 units and this is about sending of contacts/business cards.
    We are not sure if it is a network-related thing.  Tested on two different carriers as well with the same result.
    The issue is that while BB Q10/Z10 have the facility to share a contact via SMS, it seems to be not working.
    We do it by holding a particular contact that we wish to share, then click share icon.
    From the options, we choose 'Text Messaging, fill in the 'To' field, enter a message and then press the send button.
    While the .vcf is seen to be attached, nothing happens and a red clock icon just appears.
    Recipient does not receive the business card.
    Is this a known issue on BB10 devices?
    Thank you.
    MARVIN

    Hi manalotomarvin,
    When sending a VCard via SMS, the BlackBerry smartphone switches into MMS mode. If MMS service is not enabled for the device, you will not be able to send the VCard.
    I would recommend testing the MMS service by sending a photo to another contact via SMS, to see if that will send.  If this fails, I would suggest contacting the wireless network provider, to verify MMS service is enabled.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • ICloud Keychain Verification code via SMS

    I am not getting the iCloud Keychain verification code via text message. but receiving the usual text messages. On Yosemite

    Hello, Kutoz. 
    Thank you for visiting Apple Support Communities. 
    Here is some information that you may find helpful with this issue. 
    I'm not receiving the verification code via SMS.
    Make sure that you have a strong cellular network connection on your phone.
    Make sure that your phone number can receive SMS messages. You can do this by asking someone to send you a text message.
    Make sure that the correct phone number is associated with your account:
    iOS 7.0.3 or later: Tap Settings > iCloud > Account, then tap Keychain. Make sure the phone number under Verification Number is correct. If not, enter another phone number.
    OS X Mavericks v10.9 or later: Choose Apple () > System Preferences. Click iCloud, then click Account Details. Make sure the phone number listed under Verification number is correct. If not, enter another phone number.
    If you can't access a device that has iCloud Keychain enabled, you can contact Apple Support and verify your identity to get help completing iCloud Keychain setup.
    Get help using iCloud Keychain
    http://support.apple.com/kb/TS4644
    Cheers,
    Jason H. 

  • Debugging customized function module when Idoc is triggered via ALE

    Hi,
    Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
    However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
    How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
    Any help would be greatly appreciated.
    Thanks in advance,
    Mick

    Hi Mick, this might be of some help 4 u.
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    cheers,
    Hema.

  • Send credentials via sms (http APIs) ISE 1.3 patch 1

    Hi,
    I am trying to send the credentials of a guest user via sms, but does not work. I used the following parameters in configuration of the SMS gateway (ISE):
    http://admin:[email protected]/cgi-bin/exec?cmd=api_queue_sms&username=admin&password=admin&destination=$mobilenumber$&api_version=0.08&channel=5&content=
    when I run a test in:
    ISE: Guest Access--> Configure --> Guest Types --> Contractor --> test SMS
    ...the result is satisfactory
    But my sms gateway does not receive any sms, its as if the ISE not send something
    If I put this  http://admin:[email protected]/cgi-bin/exec?cmd=api_queue_sms&username=admin&password=admin&destination=999999991&api_version=0.08&channel=5&content=Mensaje+de+prueba
    in a web browser, it works!
    sorry for my English, thank you very much for your help!
    Gustavo.

    http traffic (ise: 10.100.156.11 / sms gateway: 192.168.71.10)
    ise--> sms gateway
    sms gateway ---> ISE
    http://admin:[email protected]/cgi-bin/exec?cmd=api_queue_sms&username=admin&password=adm1n123!&content=$message$&destination=$mobilenumber$&api_version=0.08&channel=3

  • Approvals are not triggered via DI

    Approvals are still not triggered via DI.
    The only note relevant I was able to find is 915573. Tested with 8.82, still the same behaviour occours.

    Hi,
    You are right. This is still on the schedule that without deadline. Unless you can find this new feature in the roadmap, it will never be available soon.
    Thanks,
    Gordon

  • Send query's result via SMS (BW3.0b)

    Hi
    we need to send query's results via sms.
    We're going to use reporting agent (we configured an exception in bex and created a follow up action).
    Now I can only send a SAP office message.
    In order to send a sms, could you help me to understand which are the necessary configuration?
    It is enough configure adequately users?? Is any configuration on the system needed?
    Is any additional component needed? we're working on a BW 3.0B release.
    Thanks in advance for your cooperation.
    Regards,
    Stefania Iandolo

    Hi dear,
    look here to have more info about BEx Mobile Intelligence:
    http://help.sap.com/saphelp_bw30b/helpdata/en/f1/50583cf7388362e10000000a114084/frameset.htm
    Hope it helps!
    Bye,
    Roberto

  • Sending password via sms instead of email

    Hello,
    when a user gets a new password the user receives an email with his new password.
    I want to know if it is possible to send the password via sms instead of email?
    We are running on NW04 SPS19 Patch 7.
    When i navigate to System Admin - System Config - UM Configuration - Notification E-Mails theres no way to use the sms channel instead.
    Is ist possible to change it anywhere in the portal or do i have to do it programatically?
    Thanks
    Joerg Heyne

    Hi,
    check the below thread
    Re: SMS messages
    Raghu

  • How to send the vCARD via SMS

    Can I send the information any contact as a vCARD via SMS? If yes, does anyone know how?

    Matthew, I'm sorry if it seemed like I was biting your head off. I appreciate your suggestions and your time, it's just that I'm two weeks into it and the iPhone has been a huge disappointment. I get "call failed" on the first two to ten tries of every single call, one in two SMS messages fail, calls to me go directly to voice mail without the phone ringing, and when I go looking for basic functionality it doesn't exist. In essence, I don't have a phone. I have a fancy and pretty iPod with a very expensive monthly fee that doesn't include music. My disappointment, however, doesn't extend to your trying to help. Sorry again.

  • QM Block not triggered  via EDI orders

    Hello All,
    Please help me with this problem "QM block not triggered via EDI Orders".
    Sales Orders will be created using IDOC. When the sales orders was displayed using VA02, goto >> items >> schedule lines, there's no QM status violated being displayed in the delivery block column.
    Kindly help me what logic will I applied regarding this matter.
    FM used was IDOC_INPUT_ORDERS.
    I need your comments/suggestions ASAP.
    Thanks in advance.
    Carina

    hai,
    Just check this it may help tou.
    Program Name : YX30_UPLOAD_QUALITY_INFO
    Quality Info Record for I30 System *
    Original Transport Number : I30K903055 *
    SYS id: SYS_30_1502_03_41_Upload Quality Info Records *
    TDS id: TD_30_1502_03_41_Upload Quality Info Records *
    UT ID: UT_30_1502_03_41_Upload Quality Info Records *
    ======================================================================
    Change History *
    Date | Change No | Name | Description *
    yyyy/mm/dd | AAAYYYYMMDD | xxxxxxxxxxxx | *
    REPORT YX30_UPLOAD_QUALITY_INFO MESSAGE-ID yx30_conversions
    no standard page heading line-size 255.
    include yx30_upload_quality_info_top. "Include for Variable Declaration & Selection Screen
    include yx30_upload_quality_info_data. "Include for File read & Authority Check
    *& At Selection Screen Output *
    AT SELECTION-SCREEN OUTPUT. "PBO
    PERFORM fill_parameters.
    *& Start Of Selection Event *
    start-of-selection.
    Perform Authority_check. "Subroutine for authority check
    Perform prepare_file. "Subroutine for preparing file
    perform file_read. "Subroutine for File read
    perform update_qi01. "Subroutine for Uploading data
    perform write_error_log1. "Subroutine for writing error log
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    *& Include YX30_UPLOAD_QUALITY_INFO_TOP
    Type Declaration
    Types: Begin of type_qtyinf,
    matnr type matnr, "Material No
    lieferant type char10, "Vendor
    werk type werks_d, "Plant
    frei_dat type char10, "Frei_Dat
    stsma type char8, "Stsma
    anwso_01 type char1, "ANWSO(01)
    anwso_02 type char1, "ANWSO(02)
    anwso_03 type char1, "ANWSO(03)
    end of type_qtyinf.
    Internal Table Declaration
    Data: itab_qtyinf type standard table of type_qtyinf. "Internal table for QTYINF.
    Work Area Declaration
    Data: wa_qtyinf type type_qtyinf. "Work Area for QTYINF.
    Variable Declaration
    Data: v_file_qtyinf type string, "Source File Name
    v1 type string,
    v2 type string,
    v3 type string,
    v_file_return type string,
    v_lin TYPE n.
    *Selection Screen Declaration
    selection-screen *
    SELECTION-SCREEN BEGIN OF BLOCK blk1
    WITH FRAME TITLE text-s01.
    PARAMETER:
    p_sysid(3) TYPE c OBLIGATORY , "Source System
    p_bukrs(4) TYPE c OBLIGATORY , "Source CompCode
    p_samshr type char30 lower case obligatory default '/sap_upload/' , "Samba Share Drive
    p_object TYPE CHAR10 OBLIGATORY default 'MAT' . "Migration Data Object
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN SKIP 3.
    PARAMETER:
    cb_pfill TYPE c AS CHECKBOX DEFAULT 'X' . "Prefill values?
    SELECTION-SCREEN COMMENT /1(79) text-s1a.
    SELECTION-SCREEN BEGIN OF BLOCK blk3
    WITH FRAME TITLE text-s03.
    PARAMETER:
    pa_filn1(500) TYPE c LOWER CASE
    VISIBLE LENGTH 50 , "Filename AppServer
    pa_dlimt TYPE c DEFAULT ';' . "Field Delimter
    SELECTION-SCREEN END OF BLOCK blk3.
    include bdcrecx1. "Include for the subroutine
    *& Include YX30_UPLOAD_QUALITY_INFO_DATA
    *& Form file_read
    Subroutine for reading the source file into internal table
    --> p1 text
    <-- p2 text
    FORM file_read .
    DATA:
    single_line TYPE string .
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_qtyinf FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    DO.
    READ DATASET v_file_qtyinf INTO single_line. "Reading the content of file into line
    IF sy-subrc = 0.
    IF sy-index > 1. "skip header-line
    SPLIT "Split the content of line into work area
    single_line
    AT ';'
    INTO
    wa_qtyinf-matnr "Material No
    wa_qtyinf-lieferant "Vendor
    wa_qtyinf-werk "Plant
    wa_qtyinf-frei_dat "Frei Date
    wa_qtyinf-stsma "STSMA
    wa_qtyinf-anwso_01 "ANWSO_01
    wa_qtyinf-anwso_02 "ANWSO_02
    wa_qtyinf-anwso_03. "ANWSO_03
    APPEND wa_qtyinf TO itab_qtyinf. "Appending Work Area to internal table
    ENDIF.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET v_file_qtyinf. "Closing the files
    ELSE.
    MESSAGE e015 .
    ENDIF.
    DESCRIBE TABLE itab_qtyinf LINES v_lin.
    IF v_lin LT 0.
    MESSAGE e016 .
    ENDIF.
    ENDFORM. " file_read
    *& Form fill_parameters
    Subroutine for getting the file name
    FORM fill_parameters .
    IF cb_pfill = 'X'.
    Preparing QTYINF File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO pa_filn1.
    ENDIF.
    ENDFORM. " fill_parameters
    *& Form Authority_check
    Authority Check
    --> p1 text
    <-- p2 text
    FORM authority_check .
    Authority Check For the Migration
    AUTHORITY-CHECK OBJECT 'YX30_MIGR'
    ID 'SYSTEM' FIELD p_sysid
    ID 'BUKRS' FIELD p_bukrs
    ID 'YX30_DMOBJ' FIELD p_object
    ID 'ACTVT' FIELD '16'.
    IF sy-subrc <> 0.
    MESSAGE e010 WITH p_sysid p_bukrs p_object.
    ENDIF.
    ENDFORM. " Authority_check
    *& Form prepare_file
    text
    --> p1 text
    <-- p2 text
    FORM prepare_file .
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_QTYINF_' p_bukrs '.CSV' INTO v2.
    CONCATENATE p_samshr v3 '/' p_object '/' v2 INTO v_file_qtyinf.
    CLEAR v3.
    CLEAR v2.
    Prepare Return File
    CONCATENATE p_sysid '_forward' INTO v3.
    CONCATENATE p_sysid '_RETRUN_LOG_' p_bukrs '.CSV' INTO v2.
    CONCATENATE '/sap_upload/' v3 '/' 'MAT' '/' v2 INTO v_file_return.
    ENDFORM. " prepare_file
    *& Form update_qi01
    text
    FORM update_qi01.
    PERFORM open_group. "Opening a session
    CLEAR wa_qtyinf.
    LOOP AT itab_qtyinf INTO wa_qtyinf.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0100'. "Subroutine for mapping data
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-MATNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'QINF-MATNR'
    wa_qtyinf-matnr. "Mapping the material
    PERFORM bdc_field USING 'QINF-LIEFERANT'
    wa_qtyinf-lieferant. "Mapping the vendor
    PERFORM bdc_field USING 'QINF-WERK'
    wa_qtyinf-werk. "Mapping the plant
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=STAN'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-STSMA'.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma. "Mapping the status
    PERFORM bdc_dynpro USING 'SAPLBSVA' '0201'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'J_STMAINT-ANWSO(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=OKAY'.
    IF wa_qtyinf-anwso_01 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01. "Mapping the anwso(01)
    ELSEIF wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02. "Mapping the anwso(02)
    ELSEIF wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03. "Mapping the anwso(03)
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ELSEIF wa_qtyinf-anwso_01 = 'X' AND wa_qtyinf-anwso_02 = 'X' AND wa_qtyinf-anwso_03 = 'X'.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(01)'
    wa_qtyinf-anwso_01.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(02)'
    wa_qtyinf-anwso_02.
    PERFORM bdc_field USING 'J_STMAINT-ANWSO(03)'
    wa_qtyinf-anwso_03.
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPMQBAA' '0101'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'QINF-FREI_DAT'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=QMBU'.
    PERFORM bdc_field USING 'QINF-FREI_DAT'
    wa_qtyinf-frei_dat.
    PERFORM bdc_field USING 'QINF-STSMA'
    wa_qtyinf-stsma.
    PERFORM bdc_transaction USING 'QI01'.
    ENDLOOP.
    PERFORM close_group. "Closing the session
    ENDFORM. "update_qi01
    *& Form write_error_log
    text
    --> p1 text
    <-- p2 text
    FORM write_error_log1 .
    DATA:
    single_line TYPE string,
    v_msg TYPE string,
    v_msg1 TYPE string.
    *-- read file, split lines into fields and put data into table
    OPEN DATASET v_file_return FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
    IF sy-subrc EQ 0.
    CONCATENATE text-020 v_lin INTO v_msg SEPARATED BY space.
    CONCATENATE text-021 v_lin INTO v_msg1 SEPARATED BY space.
    TRANSFER: v_msg TO v_file_return.
    TRANSFER: v_msg1 TO v_file_return.
    WRITE:/ v_msg.
    WRITE:/ v_msg1.
    ENDIF.
    ENDFORM. " write_error_log
    with regards.
    sowjanya.b.

  • App via SMS downloads, but Unable to launch - N8

    Hello To All,
    Perhaps this has been covered already, or perhaps I've overlooked this topic on the board, but I could really use some advice.
    I purchased an app from the Nokia Store that did not work, and the app developer sent me a completely different app (in lieu of a refund).  The app was sent to me via SMS text.
    I clicked on the link in the text (the app was sent as a .sis file - I don't what that is exactly) and it downloaded to my memory card.  I then clicked to install.  I checked 'Installed Apps' and the app is listed there, however, the app is not in 'Applications', so I am unable to launch it.  The developer sent me a different file (also .sis), via SMS, I repeated the steps, but still I am unable to launch the app.
    Can anyone advise what I am doing incorrectly?  I typically only download apps via the Nokia Store directly to my device, and this is the first time I've received an app to download via SMS.
    Any assistance that can be provided would be greatly appreciated.
    Kind Regards.

    Hi Paul Zadie,
    Please rename OOBE to OOBE.old
    Location
    Macintosh HD--->Computer--->library--->Application Support--->Adobe--->OOBE
    After renaming it you can login to www.creative.adobe.com and from the tab  'download center'  download and install 'Adobe creative cloud'
    Thanks
    Kapil

Maybe you are looking for

  • Greyed out QuickTime logo in Netscape

    I need to run the Netscape browser (7.2) for my online bank. I have noticed while surfing that I sometimes get a page with the QuickTime logo on it, but the logo is greyed out with a question mark superimposed on it. I assume this means that if all w

  • Encrypting and Decrypting Data(Its Very Urgent, Please Help.)

    Hi, Can anyone tell me some idea in the below mentioned details. Iam creating a Function for Encrypting and Decrypting Data Values using DBMS_OBFUSCATION_TOOLKIT with UTL_RAW.CAST_TO_RAW by using Key Value as normal. But the problem, is it possible t

  • Get hostname from AIR?

    I'm writing a Flash-in-browser to AIR-on-desktop app. I can get the two to communicate via the LocalConnection API's, but AIR and Flash appear to think differently about what domain they're in. Even though the browser and AIR apps are on the same mac

  • Cyberlink Recovery Disk Utility Play-by-Play?

    I have been having quite a time attempting to burn a Cyberlink bootable CD for Win 7 Recovery to a new HDD on a Pavilion dv6-3155dx. (The new HDD is a Seagate 750 GB @ 7200rpm). I've tried the burn on XP, Win 7 and Win 8 with curiously varied results

  • How to test benefits of Materialized View

    We have a system have high concurrency of update,insert and select. We have several reports that have many complex queries involving joins of around 15-20 tables. We have tried using materialized view for generating reports. But how do we conclude di